summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2012-12-03 17:23:38 -0500
committerTingPing <tingping@tingping.se>2012-12-03 17:23:38 -0500
commited54ea08b2edbe7b161656c82d379c048d681d00 (patch)
tree348fa63bf9bbcf1975c61ebcf833c93af33c9c38 /src/fe-gtk
parent10b195a59ff1524ec779a9e061e56c4e9d7cf0fc (diff)
make preferences in tray win only
to make up for lack of 'blink on' and for ex-hextray users
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/plugin-tray.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c
index 093e9395..07207a99 100644
--- a/src/fe-gtk/plugin-tray.c
+++ b/src/fe-gtk/plugin-tray.c
@@ -524,7 +524,6 @@ tray_check_hide (GtkWidget *menu)
 		tray_menu_destroy (menu, NULL);
 	}
 }
-#endif
 
 static void
 tray_menu_settings (GtkWidget * wid, gpointer none)
@@ -532,6 +531,7 @@ tray_menu_settings (GtkWidget * wid, gpointer none)
 	extern void setup_open (void);
 	setup_open ();
 }
+#endif
 
 static void
 tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata)
@@ -580,8 +580,10 @@ tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata)
 		gtk_widget_set_sensitive (item, FALSE);
 
 	menu_add_plugin_items (menu, "\x5$TRAY", NULL);
+#ifdef WIN32
 	tray_make_item (menu, NULL, tray_menu_quit_cb, NULL);
 	mg_create_icon_item (_("_Preferences"), GTK_STOCK_PREFERENCES, menu, tray_menu_settings, NULL);
+#endif
 	tray_make_item (menu, NULL, tray_menu_quit_cb, NULL);
 	mg_create_icon_item (_("_Quit"), GTK_STOCK_QUIT, menu, tray_menu_quit_cb, NULL);