Mercurial > pidgin.yaz
comparison pidgin/gtkconv.c @ 19423:dc4e8460622f
Add a 'Hide' item under 'Conversation' menu so people can check this thing out.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 25 Aug 2007 11:36:02 +0000 |
parents | a277162b976e |
children | 4da3c8618c24 |
comparison
equal
deleted
inserted
replaced
19422:a277162b976e | 19423:dc4e8460622f |
---|---|
1297 | 1297 |
1298 add_remove_cb(NULL, PIDGIN_CONVERSATION(conv)); | 1298 add_remove_cb(NULL, PIDGIN_CONVERSATION(conv)); |
1299 } | 1299 } |
1300 | 1300 |
1301 static void | 1301 static void |
1302 menu_hide_conv_cb(gpointer data, guint action, GtkWidget *widget) | |
1303 { | |
1304 PidginWindow *win = data; | |
1305 PurpleConversation *conv = pidgin_conv_window_get_active_conversation(win); | |
1306 purple_conversation_set_ui_ops(conv, NULL); | |
1307 } | |
1308 | |
1309 static void | |
1302 menu_close_conv_cb(gpointer data, guint action, GtkWidget *widget) | 1310 menu_close_conv_cb(gpointer data, guint action, GtkWidget *widget) |
1303 { | 1311 { |
1304 PidginWindow *win = data; | 1312 PidginWindow *win = data; |
1305 | 1313 |
1306 close_conv_cb(NULL, NULL, PIDGIN_CONVERSATION(pidgin_conv_window_get_active_conversation(win))); | 1314 close_conv_cb(NULL, NULL, PIDGIN_CONVERSATION(pidgin_conv_window_get_active_conversation(win))); |
2840 "<StockItem>", PIDGIN_STOCK_TOOLBAR_INSERT_IMAGE }, | 2848 "<StockItem>", PIDGIN_STOCK_TOOLBAR_INSERT_IMAGE }, |
2841 | 2849 |
2842 { "/Conversation/sep4", NULL, NULL, 0, "<Separator>", NULL }, | 2850 { "/Conversation/sep4", NULL, NULL, 0, "<Separator>", NULL }, |
2843 | 2851 |
2844 | 2852 |
2853 { N_("/Conversation/_Hide"), NULL, menu_hide_conv_cb, 0, | |
2854 "<StockItem>", NULL}, | |
2845 { N_("/Conversation/_Close"), NULL, menu_close_conv_cb, 0, | 2855 { N_("/Conversation/_Close"), NULL, menu_close_conv_cb, 0, |
2846 "<StockItem>", GTK_STOCK_CLOSE }, | 2856 "<StockItem>", GTK_STOCK_CLOSE }, |
2847 | 2857 |
2848 /* Options */ | 2858 /* Options */ |
2849 { N_("/_Options"), NULL, NULL, 0, "<Branch>", NULL }, | 2859 { N_("/_Options"), NULL, NULL, 0, "<Branch>", NULL }, |