[Xfce4-commits] <xfce4-wavelan-plugin:master> Fix transparency and put event box above its children (bug #8913).

Landry Breuil noreply at xfce.org
Fri May 18 21:08:01 CEST 2012


Updating branch refs/heads/master
         to 6db9f674f27ea27d6a6baf4881000c29260a66ee (commit)
       from 50b66a0d2ab28dbbbe854f9fceaf5d7a4737ea7a (commit)

commit 6db9f674f27ea27d6a6baf4881000c29260a66ee
Author: Harald Judt <harald.judt at univie.ac.at>
Date:   Fri May 18 19:26:12 2012 +0200

    Fix transparency and put event box above its children (bug #8913).
    
    Putting the event box above its children allows clicking on the
    progress bars to bring up the context menu.
    
    Signed-off-by: Landry Breuil <landry at xfce.org>

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

diff --git a/panel-plugin/wavelan.c b/panel-plugin/wavelan.c
index fc381bf..2652138 100644
--- a/panel-plugin/wavelan.c
+++ b/panel-plugin/wavelan.c
@@ -316,6 +316,8 @@ wavelan_new(XfcePanelPlugin *plugin)
  
   wavelan->ebox = gtk_event_box_new();
   gtk_widget_set_has_tooltip(wavelan->ebox, TRUE);
+  gtk_event_box_set_visible_window(GTK_EVENT_BOX(wavelan->ebox), FALSE);
+  gtk_event_box_set_above_child(GTK_EVENT_BOX(wavelan->ebox), TRUE);
   g_signal_connect(wavelan->ebox, "query-tooltip", G_CALLBACK(tooltip_cb), wavelan);
   xfce_panel_plugin_add_action_widget(plugin, wavelan->ebox);
   gtk_container_add(GTK_CONTAINER(plugin), wavelan->ebox);


More information about the Xfce4-commits mailing list