Mercurial > pidgin.yaz
diff src/gtkutils.c @ 8940:b875f5d57b81
[gaim-migrate @ 9710]
Gray out the Join a Chat menu item when no online accounts support chats.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 16 May 2004 00:06:25 +0000 |
parents | d729311f6352 |
children | 4ff4c34b7500 |
line wrap: on
line diff
--- a/src/gtkutils.c Sat May 15 23:04:08 2004 +0000 +++ b/src/gtkutils.c Sun May 16 00:06:25 2004 +0000 @@ -594,6 +594,14 @@ return optmenu; } +GaimAccount * +gaim_gtk_account_option_menu_get_selected(GtkWidget *optmenu) +{ + GtkWidget *menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(optmenu)); + GtkWidget *item = gtk_menu_get_active(GTK_MENU(menu)); + return g_object_get_data(G_OBJECT(item), "account"); +} + static void account_menu_cb(GtkWidget *optmenu, GCallback cb) {