make the transparency related code a bit more explicit
authormishas <mikhail.sobolev@gmail.com>
Tue, 10 Apr 2007 11:47:14 +0000 (11:47 +0000)
committermishas <mikhail.sobolev@gmail.com>
Tue, 10 Apr 2007 11:47:14 +0000 (11:47 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@153 3ba93dab-e023-0410-b42a-de7732cf370a

debian/changelog
simple-launcher.cc

index 2f94ccc..8a6613f 100644 (file)
@@ -1,4 +1,4 @@
-simple-launcher (0.9.4~8) unstable; urgency=low
+simple-launcher (0.9.4~10) unstable; urgency=low
 
   * NOT RELEASED YET
   * settings dialog is moved into a separate class
@@ -13,8 +13,9 @@ simple-launcher (0.9.4~8) unstable; urgency=low
   * added proper signal handling for eventboxes
   * trying big size :)
   * disabled gconf stuff in the launcher
+  * make transparency code a bit more explicit
 
- -- Mikhail Sobolev <mss@mawhrin.net>  Wed,  4 Apr 2007 20:32:08 +0300
+ -- Mikhail Sobolev <mss@mawhrin.net>  Tue, 10 Apr 2007 14:46:36 +0300
 
 simple-launcher (0.9.3) unstable; urgency=low
 
index c8a42c7..2211736 100644 (file)
@@ -80,6 +80,9 @@ private:
 
   LauncherItems myItems;
 
+  bool myTransparent;
+  // bool myShowInfobanner; // FIXME: to implement
+
   static char *ourDirs[];
 };
 
@@ -130,7 +133,7 @@ char *SimpleLauncherApplet::ourDirs[] = {
 };
 
 // SimpleLauncherApplet::SimpleLauncherApplet() : myMainSettings(myClient.getKey(SL_APPLET_GCONF_PATH)), myContext(NULL), myWidget(NULL), myParent(NULL) {
-SimpleLauncherApplet::SimpleLauncherApplet() : myContext(NULL), myWidget(NULL), myParent(NULL) {
+SimpleLauncherApplet::SimpleLauncherApplet() : myContext(NULL), myWidget(NULL), myParent(NULL), myTransparent(false) {
 }
 
 bool SimpleLauncherApplet::doInit(void *state_data, int *state_size) {
@@ -268,8 +271,7 @@ void SimpleLauncherApplet::updateWidget() {
       gtk_widget_set_events(button, GDK_BUTTON_PRESS_MASK);
       g_signal_connect(button, "button-press-event", G_CALLBACK(_button_pressed), this);
 
-      gtk_event_box_set_visible_window(GTK_EVENT_BOX(button), false);
-      // gtk_button_set_relief(GTK_BUTTON(button),GTK_RELIEF_NONE);
+      gtk_event_box_set_visible_window(GTK_EVENT_BOX(button), !myTransparent);
 
       gtk_container_add(GTK_CONTAINER(button), gtk_image_new_from_pixbuf(item->getIcon(SL_APPLET_ICON_SIZE)));