summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/trg-main-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 92680a1..8c93c7c 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -1656,9 +1656,9 @@ static gboolean status_icon_button_press_event(GtkStatusIcon * icon,
{
if (event->type == GDK_BUTTON_PRESS && event->button == 3) {
TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(data);
- gtk_menu_popup(priv->iconMenu, NULL, NULL, NULL, NULL,
- (event != NULL) ? event->button : 0,
- gdk_event_get_time((GdkEvent *) event));
+ gtk_menu_popup(priv->iconMenu, NULL, NULL,
+ gtk_status_icon_position_menu, priv->statusIcon, event->button,
+ gdk_event_get_time((GdkEvent *) event));
return TRUE;
} else {
return FALSE;