mirror of
https://github.com/moparisthebest/hexchat
synced 2025-02-03 08:50:30 -05:00
add preferences to tray menu
This commit is contained in:
parent
31fc9c7f31
commit
0a5c8356eb
@ -526,6 +526,13 @@ tray_check_hide (GtkWidget *menu)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static void
|
||||||
|
tray_menu_settings (GtkWidget * wid, gpointer none)
|
||||||
|
{
|
||||||
|
extern void setup_open (void);
|
||||||
|
setup_open ();
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata)
|
tray_menu_cb (GtkWidget *widget, guint button, guint time, gpointer userdata)
|
||||||
{
|
{
|
||||||
@ -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);
|
tray_make_item (menu, NULL, tray_menu_quit_cb, NULL);
|
||||||
#endif
|
#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);
|
mg_create_icon_item (_("_Quit"), GTK_STOCK_QUIT, menu, tray_menu_quit_cb, NULL);
|
||||||
|
|
||||||
menu_add_plugin_items (menu, "\x5$TRAY", NULL);
|
menu_add_plugin_items (menu, "\x5$TRAY", NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user