Updating branch refs/heads/xfce-4.8 to ffb8c175e9795d0d25d0ce38d8f513285c26e46f (commit) from 32bc2ef58f0f78d6da4fc498825008f4eba6d9f2 (commit)
commit ffb8c175e9795d0d25d0ce38d8f513285c26e46f Author: Nick Schermer <n...@xfce.org> Date: Sat Jan 29 21:12:19 2011 +0100 Unset visible event window in 4.6 plugins. A lot 4.6 plugins have an event window as plugin child, but most of them do not disable the visible event window, resulting in an ugly looking plugin with composited panels. So detect if the plugin has an event window as child and hide the visible window. For this change, plugins need to recompile. libxfce4panel/xfce-panel-macros-46.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/libxfce4panel/xfce-panel-macros-46.h b/libxfce4panel/xfce-panel-macros-46.h index b18a04e..ec2d484 100644 --- a/libxfce4panel/xfce-panel-macros-46.h +++ b/libxfce4panel/xfce-panel-macros-46.h @@ -420,6 +420,8 @@ G_BEGIN_DECLS _xpp_realize (XfcePanelPlugin *xpp, \ GtkPlug *plug) \ { \ + GtkWidget *ebox; \ + \ g_return_if_fail (XFCE_IS_PANEL_PLUGIN (xpp)); \ g_return_if_fail (GTK_IS_PLUG (plug)); \ g_return_if_fail (GTK_WIDGET_REALIZED (plug)); \ @@ -435,6 +437,10 @@ G_BEGIN_DECLS G_CALLBACK (_xpp_provider_signal), plug); \ \ ((XfcePanelPluginFunc) construct_func) (xpp); \ + \ + ebox = gtk_bin_get_child (GTK_BIN (xpp)); \ + if (ebox != NULL && GTK_IS_EVENT_BOX (ebox)) \ + gtk_event_box_set_visible_window (GTK_EVENT_BOX (ebox), FALSE); \ } \ \ static gboolean \ _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits