[Xfce4-commits] <xfce4-mpc-plugin:master> Set event box to use an invisible child window.

Landry Breuil noreply at xfce.org
Sun Feb 12 20:30:06 CET 2012


Updating branch refs/heads/master
         to 9c5196ef3e0b018562824aa5cc4a6f03f809b1d2 (commit)
       from 36a771794466f8447479a72f5d0e80e371a5158a (commit)

commit 9c5196ef3e0b018562824aa5cc4a6f03f809b1d2
Author: Landry Breuil <landry at xfce.org>
Date:   Sun Feb 12 16:40:04 2012 +0100

    Set event box to use an invisible child window.
    
    This makes the plugin background transparent, and fixes #8449
    Thx nick for the pointer to gtk_event_box_set_visible_window ()

 panel-plugin/xfce4-mpc-plugin.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/xfce4-mpc-plugin.c b/panel-plugin/xfce4-mpc-plugin.c
index 9bff8c2..2f0ce31 100644
--- a/panel-plugin/xfce4-mpc-plugin.c
+++ b/panel-plugin/xfce4-mpc-plugin.c
@@ -710,6 +710,7 @@ mpc_create (XfcePanelPlugin * plugin)
    gtk_widget_show (mpc->frame);
 
    mpc->ebox = gtk_event_box_new();
+   gtk_event_box_set_visible_window(GTK_EVENT_BOX(mpc->ebox), FALSE);
    g_signal_connect (G_OBJECT(mpc->ebox), "enter_notify_event", G_CALLBACK(enter_cb), mpc);
    g_signal_connect (G_OBJECT(mpc->ebox), "scroll_event", G_CALLBACK(scroll_cb), mpc);
    gtk_widget_show (mpc->ebox);


More information about the Xfce4-commits mailing list