From: mishas Date: Wed, 4 Apr 2007 14:54:31 +0000 (+0000) Subject: preliminary code to use gconf with the applet X-Git-Url: https://vcs.maemo.org/git/?p=simple-launcher;a=commitdiff_plain;h=8e6c50b09823babdca4afbe11347c124635c88ce preliminary code to use gconf with the applet git-svn-id: file:///svnroot/simple-launcher/trunk@151 3ba93dab-e023-0410-b42a-de7732cf370a --- 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) {