summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/trg-main-window.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c
index 95b2367..23c83e6 100644
--- a/src/trg-main-window.c
+++ b/src/trg-main-window.c
@@ -1706,7 +1706,12 @@ static gboolean trg_status_icon_popup_menu_cb(GtkStatusIcon * icon,
TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(userdata);
gtk_menu_popup(priv->iconMenu, NULL, NULL,
- gtk_status_icon_position_menu, priv->statusIcon, 0,
+#ifdef WIN32
+ NULL,
+#else
+ gtk_status_icon_position_menu,
+#endif
+ priv->statusIcon, 0,
gtk_get_current_event_time());
return TRUE;
@@ -1719,7 +1724,12 @@ 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,
- gtk_status_icon_position_menu, priv->statusIcon,
+#ifdef WIN32
+ NULL,
+#else
+ gtk_status_icon_position_menu,
+#endif
+ priv->statusIcon,
event->button,
gdk_event_get_time((GdkEvent *) event));
return TRUE;