X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=simple-launcher.cc;h=a78d4229dd5961159462f03ddf6888dc82150a7c;hb=8e6c50b09823babdca4afbe11347c124635c88ce;hp=74d561a8716e8e0ebd312592589f336b29c1f1cc;hpb=27facea6aab59e917949d0bbb82cbda2085467bd;p=simple-launcher diff --git a/simple-launcher.cc b/simple-launcher.cc index 74d561a..a78d422 100644 --- a/simple-launcher.cc +++ b/simple-launcher.cc @@ -30,11 +30,14 @@ #include "sla-list.h" #include "launchable-item.h" #include "settings-dialog.h" +#include "gconf-wrapper.h" #define SL_APPLET_DBUS_NAME "simple-launcher" #define SL_APPLET_VERSION "0.0" #define SL_APPLET_ICON_SIZE 26 +#define SL_APPLET_GCONF_PATH "/apps/simple-launcher" + class SimpleLauncherApplet { public: SimpleLauncherApplet(); @@ -68,7 +71,11 @@ private: static void _run_dialog(GtkMenuItem *, void *); private: + GConfClientWrapper myClient; + GConfKey myMainSettings; + osso_context_t *myContext; + GtkWidget *myWidget; GtkWindow *myParent; @@ -123,7 +130,7 @@ char *SimpleLauncherApplet::ourDirs[] = { NULL }; -SimpleLauncherApplet::SimpleLauncherApplet(): myContext(NULL), myWidget(NULL), myParent(NULL) { +SimpleLauncherApplet::SimpleLauncherApplet(): myMainSettings(myClient.getKey(SL_APPLET_GCONF_PATH)), myContext(NULL), myWidget(NULL), myParent(NULL) { } bool SimpleLauncherApplet::doInit(void *state_data, int *state_size) {