[Xfce4-commits] <xfce4-eyes-plugin:master> Fix compiler warning and hide event window.

Nick Schermer noreply at xfce.org
Sat Jan 29 21:02:02 CET 2011


Updating branch refs/heads/master
         to 41ecb9026ba777e41c7c0a8f6e07cad9cfda4c37 (commit)
       from ab34029ca2717b33954436c5de44f8e6760d6306 (commit)

commit 41ecb9026ba777e41c7c0a8f6e07cad9cfda4c37
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Jan 29 21:01:27 2011 +0100

    Fix compiler warning and hide event window.
    
    This makes the plugin look nice on transparent panels.

 panel-plugin/eyes.c   |    9 ++++-----
 panel-plugin/themes.c |    2 ++
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/eyes.c b/panel-plugin/eyes.c
index 1524e5b..6c71938 100644
--- a/panel-plugin/eyes.c
+++ b/panel-plugin/eyes.c
@@ -489,13 +489,12 @@ eyes_plugin_new (XfcePanelPlugin* plugin)
     eyes->plugin = plugin;
 
     eyes->ebox = gtk_event_box_new ();
-    gtk_widget_show(GTK_WIDGET(eyes->ebox));
+    gtk_event_box_set_visible_window (GTK_EVENT_BOX (eyes->ebox), FALSE);
+    gtk_widget_show(eyes->ebox);
 
     eyes->align = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
-
-    gtk_widget_show(GTK_WIDGET(eyes->align));
-
-    gtk_container_add(GTK_CONTAINER(eyes->ebox), GTK_WIDGET(eyes->align));
+    gtk_container_add(GTK_CONTAINER(eyes->ebox), eyes->align);
+    gtk_widget_show(eyes->align);
 
     eyes_read_rc_file (plugin, eyes);
 
diff --git a/panel-plugin/themes.c b/panel-plugin/themes.c
index e0be092..a7d2fed 100644
--- a/panel-plugin/themes.c
+++ b/panel-plugin/themes.c
@@ -24,7 +24,9 @@
 #include <ctype.h>
 
 #include <gtk/gtk.h>
+
 #include "eyes.h"
+#include "themes.h"
 
 gchar *theme_directories[] = {
     THEMESDIR



More information about the Xfce4-commits mailing list