From 53c11b34c7e1ed686069805844b90730ae3f8b3f Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Thu, 17 May 2012 18:43:17 +0200 Subject: Facilitate bringing up the configuration dialog. 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..1b5b2d4 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(global->monitor[count]->ebox), TRUE); gtk_widget_show (poMonitor->wEventBox); xfce_panel_plugin_add_action_widget (plugin, poMonitor->wEventBox); -- 1.7.8.6