diff pidgin/gtkdocklet.c @ 23581:8553e5e19bd2

Add menuitem for 'join chat' in the docklet menu. Closes #3623. committer: Sadrul Habib Chowdhury <imadil@gmail.com>
author Balwinder S Dheeman <bsd@rubyforge.org>
date Sun, 13 Jul 2008 17:00:50 +0000
parents 326b1b389a88
children aaaff38e144f 008f186c7bc7
line wrap: on
line diff
--- a/pidgin/gtkdocklet.c	Sun Jul 13 15:51:38 2008 +0000
+++ b/pidgin/gtkdocklet.c	Sun Jul 13 17:00:50 2008 +0000
@@ -708,6 +708,11 @@
 	if (status == PURPLE_STATUS_OFFLINE)
 		gtk_widget_set_sensitive(menuitem, FALSE);
 
+	menuitem = pidgin_new_item_from_stock(menu, _("Join Chat..."), PIDGIN_STOCK_CHAT,
+			G_CALLBACK(pidgin_blist_joinchat_show), NULL, 0, 0, NULL);
+	if (status == PURPLE_STATUS_OFFLINE)
+		gtk_widget_set_sensitive(menuitem, FALSE);
+
 	menuitem = docklet_status_submenu();
 	gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);