Mercurial > pidgin
changeset 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 | c17e41049b61 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Sat Aug 25 11:29:43 2007 +0000 +++ b/pidgin/gtkconv.c Sat Aug 25 11:36:02 2007 +0000 @@ -1299,6 +1299,14 @@ } static void +menu_hide_conv_cb(gpointer data, guint action, GtkWidget *widget) +{ + PidginWindow *win = data; + PurpleConversation *conv = pidgin_conv_window_get_active_conversation(win); + purple_conversation_set_ui_ops(conv, NULL); +} + +static void menu_close_conv_cb(gpointer data, guint action, GtkWidget *widget) { PidginWindow *win = data; @@ -2842,6 +2850,8 @@ { "/Conversation/sep4", NULL, NULL, 0, "<Separator>", NULL }, + { N_("/Conversation/_Hide"), NULL, menu_hide_conv_cb, 0, + "<StockItem>", NULL}, { N_("/Conversation/_Close"), NULL, menu_close_conv_cb, 0, "<StockItem>", GTK_STOCK_CLOSE },