make commented out code a bit more correct :)
[simple-launcher] / simple-launcher.cc
index 1b35150..0044068 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <gtk/gtk.h>
 
-#include <hildon-home-plugin/hildon-home-plugin-interface.h>
 #include <libosso.h>
 
 #include "launcher-item.h"
@@ -43,8 +42,6 @@ public:
 
   bool doInit(void *state_data, int *state_size);
 
-  void background() {}
-  void foreground() {}
   int saveState(void **state_data, int *state_size);
   GtkWidget *settings(GtkWindow *parent);
 
@@ -111,14 +108,6 @@ void hildon_home_applet_lib_deinitialize(void *applet_data) {
   delete applet;
 }
 
-void hildon_home_applet_lib_background(void *applet_data) {
-  ((SimpleLauncherApplet *)applet_data)->background();
-}
-
-void hildon_home_applet_lib_foreground (void *applet_data) {
-  ((SimpleLauncherApplet *)applet_data)->foreground();
-}
-
 GtkWidget *hildon_home_applet_lib_settings(void *applet_data, GtkWindow *parent) {
   return ((SimpleLauncherApplet *)applet_data)->settings(parent);
 }
@@ -135,7 +124,7 @@ char *SimpleLauncherApplet::ourDirs[] = {
 };
 
 // SimpleLauncherApplet::SimpleLauncherApplet() : myMainSettings(myClient.getKey(SL_APPLET_GCONF_PATH)), myContext(NULL), myWidget(NULL), myParent(NULL) {
-SimpleLauncherApplet::SimpleLauncherApplet(const GConfKey& base) : myContext(NULL), myWidget(NULL), myParent(NULL), myTransparent(base, "transparent", true), myIconSize(base, "icon_size", 26) {
+SimpleLauncherApplet::SimpleLauncherApplet(const GConfKey& base) : myContext(NULL), myWidget(NULL), myParent(NULL), myTransparent(base, "transparent", false), myIconSize(base, "icon_size", 48) {
 }
 
 bool SimpleLauncherApplet::doInit(void *state_data, int *state_size) {
@@ -184,6 +173,7 @@ void SimpleLauncherApplet::addItem(LauncherItems& items, const std::string& name
   }
 }
 
+// {{{ Configuration file managment
 static const gchar *getConfigFileName() {
   static gchar *configFileName = NULL;
 
@@ -225,6 +215,8 @@ void SimpleLauncherApplet::saveConfig() {
   }
 }
 
+// }}}
+
 void SimpleLauncherApplet::updateItems(LauncherItems& items) {
   for (int i = 0 ; ourDirs[i] != NULL ; ++i) {
     processDirectory(items, ourDirs[i]);
@@ -256,7 +248,7 @@ void SimpleLauncherApplet::processDirectory(LauncherItems& items, const std::str
 }
 
 bool SimpleLauncherApplet::initWidget() {
-  myWidget = gtk_hbox_new(false, 2);
+  myWidget = gtk_hbox_new(false, 0);
 
   if (myWidget != NULL) {
     updateWidget();