Fixing code to use config.h as default config incude file

This commit is contained in:
Sanel Zukan
2009-02-20 13:10:21 +00:00
parent 7513426131
commit 364b729f87
18 changed files with 97 additions and 118 deletions

27
ede-panel/Jamfile Normal file
View File

@@ -0,0 +1,27 @@
#
# $Id$
#
# Part of Equinox Desktop Environment (EDE).
# Copyright (c) 2009 EDE Authors.
#
# This program is licensed under terms of the
# GNU General Public License version 2 or newer.
# See COPYING for details.
SubDir TOP ede-panel ;
SOURCE = aboutdialog.cpp
logoutdialog.cpp
panelbutton.cpp
keyboardchooser.cpp
taskbutton.cpp
workpanel.cpp
item.cpp
cpumonitor.cpp
batterymonitor.cpp
dock.cpp
mainmenu.cpp
mainmenu_scan.cpp ;
EfltkProgram ede-panel : $(SOURCE) ;
TranslationStrings locale : $(SOURCE) ;

View File

@@ -1,45 +0,0 @@
#
# $Id$
#
# Part of Equinox Desktop Environment (EDE).
# Copyright (c) 2000-2006 EDE Authors.
#
# This program is licenced under terms of the
# GNU General Public Licence version 2 or newer.
# See COPYING for details.
CPPFILES = aboutdialog.cpp\
logoutdialog.cpp\
panelbutton.cpp\
keyboardchooser.cpp\
taskbutton.cpp\
workpanel.cpp\
item.cpp\
cpumonitor.cpp\
batterymonitor.cpp\
dock.cpp\
mainmenu.cpp\
mainmenu_scan.cpp
TARGET = eworkpanel
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
locale/hu.po\
locale/de.po\
locale/fr.po
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@@ -10,6 +10,10 @@
* See COPYING for details.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <efltk/Fl.h>
#include <efltk/Fl_Window.h>
#include <efltk/Fl_Box.h>
@@ -18,7 +22,6 @@
#include <efltk/Fl_Locale.h>
#include <efltk/Fl_Image.h>
#include <efltk/Fl_Text_Buffer.h>
#include <edeconf.h>
#include "aboutdialog.h"
#include "icons/ede.xpm"

View File

@@ -346,15 +346,15 @@ void battery_check(void)
typedef struct apm_info {
char driver_version[10];
int apm_version_major;
int apm_version_minor;
int apm_flags;
int ac_line_status;
int battery_status;
int battery_flags;
int battery_percentage;
int battery_time;
int using_minutes;
int apm_version_major;
int apm_version_minor;
unsigned int apm_flags;
unsigned int ac_line_status;
unsigned int battery_status;
unsigned int battery_flags;
int battery_percentage;
int battery_time;
int using_minutes;
} apm_info;

View File

@@ -1,7 +1,9 @@
#ifndef _batterymonitor_h_
#define _batterymonitor_h_
#include <edeconf.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <efltk/Fl_Widget.h>
#include <efltk/Fl_Locale.h>

View File

@@ -1,7 +1,9 @@
#ifndef _CPUMONITOR_H_
#define _CPUMONITOR_H_
#include <edeconf.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_KSTAT_H
#include <kstat.h>

View File

@@ -4,6 +4,7 @@
// See COPYING for details.
#include "keyboardchooser.h"
#include "icons/keyboard.xpm"
#define MAX_KEYBOARDS 5

View File

@@ -21,9 +21,6 @@
#include <efltk/fl_draw.h>
#include <efltk/Fl_Locale.h>
#include "icons/keyboard.xpm"
class KeyboardChooser : public Fl_Menu_Button
{
public:

View File

@@ -1,7 +1,10 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "mainmenu.h"
#include "menu.h"
#include <edeconf.h>
#include <unistd.h>
#include <pwd.h>
#include <locale.h>

View File

@@ -1,4 +1,7 @@
#include <edeconf.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
static const char default_menu[] =
"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\
<Menu>\n\

View File

@@ -415,7 +415,6 @@ void FL_WM_handler(Fl_Widget *w, void *d)
}
}
#define DEBUG
void terminationHandler(int signum)
{
#ifndef DEBUG