[Xfce4-commits] <xfce4-cpugraph-plugin:master> Set the eventbox above its childs, clicks are transferred properly now (bug #7251)

Landry Breuil noreply at xfce.org
Wed May 16 21:56:01 CEST 2012


Updating branch refs/heads/master
         to d2db8a619cfcf2e373b4106826387b163edcd754 (commit)
       from 0011e3999febae9cc521209d7a9594fa12539e59 (commit)

commit d2db8a619cfcf2e373b4106826387b163edcd754
Author: Landry Breuil <landry at xfce.org>
Date:   Wed May 16 21:53:34 2012 +0200

    Set the eventbox above its childs, clicks are transferred properly now (bug #7251)

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

diff --git a/panel-plugin/cpu.c b/panel-plugin/cpu.c
index 1ea0c03..f72c626 100644
--- a/panel-plugin/cpu.c
+++ b/panel-plugin/cpu.c
@@ -102,6 +102,7 @@ static CPUGraph * create_gui( XfcePanelPlugin * plugin )
 
 	ebox = gtk_event_box_new();
 	gtk_event_box_set_visible_window(GTK_EVENT_BOX(ebox), FALSE);
+	gtk_event_box_set_above_child(GTK_EVENT_BOX(ebox), TRUE);
 	gtk_container_add( GTK_CONTAINER( plugin ), ebox );
 	xfce_panel_plugin_add_action_widget( plugin, ebox );
 	g_signal_connect( ebox, "button-press-event", G_CALLBACK( command_cb ), base );


More information about the Xfce4-commits mailing list