summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2012-11-22 02:49:41 -0500
committerTingPing <tingping@tingping.se>2012-11-22 02:49:41 -0500
commit0a5c8356eb3a86f1906733e76d2f802e9f986534 (patch)
treeee5fedf08c87c90f939e36dee98176c90a9f1c5f
parent31fc9c7f31120cd0e6be3cc84cbf0229f5b2214f (diff)
add preferences to tray menu
-rw-r--r--src/fe-gtk/plugin-tray.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fe-gtk/plugin-tray.c b/src/fe-gtk/plugin-tray.c
index 5c0d02ce..0e697a11 100644
--- a/src/fe-gtk/plugin-tray.c
+++ b/src/fe-gtk/plugin-tray.c
@@ -527,6 +527,13 @@ tray_check_hide (GtkWidget *menu)
 #endif
 
 static void
+tray_menu_settings (GtkWidget * wid, gpointer none)
+{
+	extern void setup_open (void);
+	setup_open ();
+}
+
+static void
 tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata)
 {
 	static GtkWidget *menu;
@@ -573,6 +580,8 @@ tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata)
 	tray_make_item (menu, NULL, tray_menu_quit_cb, NULL);
 #endif
 
+	mg_create_icon_item (_("_Preferences"), GTK_STOCK_PREFERENCES, menu, tray_menu_settings, NULL);
+	tray_make_item (menu, NULL, tray_menu_quit_cb, NULL);
 	mg_create_icon_item (_("_Quit"), GTK_STOCK_QUIT, menu, tray_menu_quit_cb, NULL);
 
 	menu_add_plugin_items (menu, "\x5$TRAY", NULL);