Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
8939:19885cb8a24c | 8940:b875f5d57b81 |
---|---|
592 g_object_unref(sg); | 592 g_object_unref(sg); |
593 | 593 |
594 return optmenu; | 594 return optmenu; |
595 } | 595 } |
596 | 596 |
597 GaimAccount * | |
598 gaim_gtk_account_option_menu_get_selected(GtkWidget *optmenu) | |
599 { | |
600 GtkWidget *menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(optmenu)); | |
601 GtkWidget *item = gtk_menu_get_active(GTK_MENU(menu)); | |
602 return g_object_get_data(G_OBJECT(item), "account"); | |
603 } | |
604 | |
597 static void | 605 static void |
598 account_menu_cb(GtkWidget *optmenu, GCallback cb) | 606 account_menu_cb(GtkWidget *optmenu, GCallback cb) |
599 { | 607 { |
600 GtkWidget *menu; | 608 GtkWidget *menu; |
601 GtkWidget *item; | 609 GtkWidget *item; |