preliminary code to use gconf with the applet
authormishas <mikhail.sobolev@gmail.com>
Wed, 4 Apr 2007 14:54:31 +0000 (14:54 +0000)
committermishas <mikhail.sobolev@gmail.com>
Wed, 4 Apr 2007 14:54:31 +0000 (14:54 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@151 3ba93dab-e023-0410-b42a-de7732cf370a

simple-launcher.cc

index 74d561a..a78d422 100644 (file)
 #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) {