changeset 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 fae54e746bde
children ad0d0efa30dd
files pidgin/gtkdocklet.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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);