[Xfce4-commits] <xfce4-indicator-plugin:master> fix menu position
Mark Trompell
noreply at xfce.org
Tue Jul 19 08:50:01 CEST 2011
Updating branch refs/heads/master
to 4c410464a89615547e959c0392c69c77add4eaf5 (commit)
from 1259f7affb19cdb7cf92c4d7f0f58e9890680df1 (commit)
commit 4c410464a89615547e959c0392c69c77add4eaf5
Author: Mark Trompell <mark at foresightlinux.org>
Date: Tue Jul 19 08:47:21 2011 +0200
fix menu position
panel-plugin/indicator.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/panel-plugin/indicator.c b/panel-plugin/indicator.c
index 1741a9c..4468a52 100644
--- a/panel-plugin/indicator.c
+++ b/panel-plugin/indicator.c
@@ -163,14 +163,12 @@ on_button_press (GtkWidget *widget, GdkEventButton *event, IndicatorPlugin *indi
{
if( event->button == 1) /* left click only */
{
- gtk_menu_popup (GTK_MENU(g_object_get_data (G_OBJECT(widget),"menu")), NULL,
- NULL, NULL, NULL, 1, event->time);
- /* no approvement to the above */
- /*
- gtk_menu_popup (GTK_MENU(g_object_get_data (G_OBJECT(widget),"menu")), NULL, NULL,
+ GtkMenu * menu = GTK_MENU(g_object_get_data (G_OBJECT(widget),"menu"));
+ gtk_menu_attach_to_widget(menu, widget, NULL);
+ gtk_menu_popup (menu, NULL, NULL,
xfce_panel_plugin_position_menu,
indicator->plugin, 1, gtk_get_current_event_time ());
- */
+
return TRUE;
}
/* event doesn't make it to the ebox, so I just push it. */
More information about the Xfce4-commits
mailing list