[Xfce4-commits] <xfce4-indicator-plugin:master> indicator-button: minor fix to gtk_menu_popup call
Andrzej
noreply at xfce.org
Thu Apr 4 17:44:34 CEST 2013
Updating branch refs/heads/master
to 985d34925075ffd8ea020cec1fd2e849d47aff83 (commit)
from 23dfad6c95ba2502b2c5d6b0c26722c3e09ff59e (commit)
commit 985d34925075ffd8ea020cec1fd2e849d47aff83
Author: Andrzej <ndrwrdck at gmail.com>
Date: Tue Apr 2 20:17:03 2013 +0100
indicator-button: minor fix to gtk_menu_popup call
Getting time from the event structure rather than from
gtk_get_current_event_time(). It does not solve menu flicker
issues present in some indicators (appmenu, qt-sni etc), though.
They seem to originate from the indicator itself.
panel-plugin/indicator-button.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/indicator-button.c b/panel-plugin/indicator-button.c
index 8b269a6..74ed022 100644
--- a/panel-plugin/indicator-button.c
+++ b/panel-plugin/indicator-button.c
@@ -579,9 +579,8 @@ xfce_indicator_button_button_press (GtkWidget *widget,
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget),TRUE);
gtk_menu_reposition (GTK_MENU (button->menu));
gtk_menu_popup (button->menu, NULL, NULL,
- xfce_panel_plugin_position_menu,
- button->plugin,
- 1, gtk_get_current_event_time ());
+ xfce_panel_plugin_position_menu, button->plugin,
+ event->button, event->time);
return TRUE;
}
More information about the Xfce4-commits
mailing list