X-Git-Url: http://git.maemo.org/git/?p=simple-launcher;a=blobdiff_plain;f=simple-launcher.cc;h=3ebd1da1abf386b1c038cb31be76af971c59e80d;hp=3218fc7dc25431249738c94b05aabb03a9e727af;hb=b843813af2067326837dcebbee364b1efcd56518;hpb=85fc072bca10befc7db4fa8f0d805068de3f88ea diff --git a/simple-launcher.cc b/simple-launcher.cc index 3218fc7..3ebd1da 100644 --- a/simple-launcher.cc +++ b/simple-launcher.cc @@ -149,7 +149,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) { @@ -198,6 +198,7 @@ void SimpleLauncherApplet::addItem(LauncherItems& items, const std::string& name } } +// {{{ Configuration file managment static const gchar *getConfigFileName() { static gchar *configFileName = NULL; @@ -239,6 +240,8 @@ void SimpleLauncherApplet::saveConfig() { } } +// }}} + void SimpleLauncherApplet::updateItems(LauncherItems& items) { for (int i = 0 ; ourDirs[i] != NULL ; ++i) { processDirectory(items, ourDirs[i]); @@ -270,7 +273,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();