summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-15 16:00:17 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-15 16:00:17 +0000
commit2512c508cb6b8edeefed308a3dce61054d58bb06 (patch)
treeaf94e5419b6067aeea02cb956754330d99cc0c40
parentd50ff75ea10e3a928ec769efae4c697f300b2e55 (diff)
don't use gtk_status_icon_position_menu on windows - it seems to be broken.
-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;