pidgin: 4c991553: Add menuitem for 'join chat' in the dock...

sadrul at pidgin.im sadrul at pidgin.im
Sun Jul 13 13:21:18 EDT 2008


-----------------------------------------------------------------
Revision: 4c99155361db627c6ba1e256cf398156f9cd6d19
Ancestor: e2a43a07463b9b8f8bedb4d4831b98986c6184dd
Author: Balwinder S Dheeman <bsd at rubyforge.org>
Date: 2008-07-13T17:00:50
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4c99155361db627c6ba1e256cf398156f9cd6d19

Modified files:
        pidgin/gtkdocklet.c

ChangeLog: 

Add menuitem for 'join chat' in the docklet menu. Closes #3623.

-------------- next part --------------
============================================================
--- pidgin/gtkdocklet.c	ec86d6c12475d893fa674acedcacbe036136459a
+++ pidgin/gtkdocklet.c	f42a159b6e3e0e8b80fed9d0d294e6586b467c85
@@ -708,6 +708,11 @@ docklet_menu(void)
 	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);
 


More information about the Commits mailing list