[Xfce4-commits] <xfce4-diskperf-plugin:master> Facilitate bringing up the configuration dialog (bug #8899).
Landry Breuil
noreply at xfce.org
Fri May 18 11:10:01 CEST 2012
Updating branch refs/heads/master
to d663055221aecc5acfed38612b32d7deeb885e12 (commit)
from c0e0c4fb14f8db2d08988fb5d50e43a1310645fd (commit)
commit d663055221aecc5acfed38612b32d7deeb885e12
Author: Harald Judt <h.judt at gmx.at>
Date: Fri May 18 11:07:11 2012 +0200
Facilitate bringing up the configuration dialog (bug #8899).
Currently only the labels and the border react to clicks.
By setting the event box above its childs, all parts of the plugin
will react to mouse clicks, which makes it easier to bring up the
context menu and the configuration dialog.
panel-plugin/main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/panel-plugin/main.c b/panel-plugin/main.c
index c5f71c1..450b471 100644
--- a/panel-plugin/main.c
+++ b/panel-plugin/main.c
@@ -475,6 +475,7 @@ static diskperf_t *diskperf_create_control (XfcePanelPlugin *plugin)
poMonitor->wEventBox = gtk_event_box_new ();
gtk_event_box_set_visible_window(GTK_EVENT_BOX(poMonitor->wEventBox), FALSE);
+ gtk_event_box_set_above_child(GTK_EVENT_BOX(poMonitor->wEventBox), TRUE);
gtk_widget_show (poMonitor->wEventBox);
xfce_panel_plugin_add_action_widget (plugin, poMonitor->wEventBox);
More information about the Xfce4-commits
mailing list