Mercurial > pidgin
comparison src/gtkutils.c @ 9910:0cb20555b3ab
[gaim-migrate @ 10802]
(21:34:46) nosnilmot: LSchiere: Sean made sounds like this was a good idea
earlier but didn't apply it...
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 30 Aug 2004 01:40:07 +0000 |
parents | 8651abf08dd5 |
children | 83eb12b1f1a1 |
comparison
equal
deleted
inserted
replaced
9909:ebca3bbc6719 | 9910:0cb20555b3ab |
---|---|
659 gaim_signals_disconnect_by_handle(optmenu); | 659 gaim_signals_disconnect_by_handle(optmenu); |
660 | 660 |
661 return FALSE; | 661 return FALSE; |
662 } | 662 } |
663 | 663 |
664 void | |
665 gaim_gtk_account_option_menu_set_selected(GtkWidget *optmenu, GaimAccount *account) | |
666 { | |
667 GtkWidget *menu; | |
668 GtkWidget *item; | |
669 gboolean show_all; | |
670 GaimAccount *curaccount; | |
671 GaimFilterAccountFunc filter_func; | |
672 | |
673 menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(optmenu)); | |
674 item = gtk_menu_get_active(GTK_MENU(menu)); | |
675 curaccount = g_object_get_data(G_OBJECT(item), "account"); | |
676 | |
677 if (account == curaccount) | |
678 return; | |
679 | |
680 show_all = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(optmenu), | |
681 "show_all")); | |
682 | |
683 filter_func = g_object_get_data(G_OBJECT(optmenu), | |
684 "filter_func"); | |
685 | |
686 gtk_option_menu_remove_menu(GTK_OPTION_MENU(optmenu)); | |
687 | |
688 create_account_menu(optmenu, account, filter_func, show_all); | |
689 } | |
690 | |
664 GtkWidget * | 691 GtkWidget * |
665 gaim_gtk_account_option_menu_new(GaimAccount *default_account, | 692 gaim_gtk_account_option_menu_new(GaimAccount *default_account, |
666 gboolean show_all, GCallback cb, | 693 gboolean show_all, GCallback cb, |
667 GaimFilterAccountFunc filter_func, | 694 GaimFilterAccountFunc filter_func, |
668 gpointer user_data) | 695 gpointer user_data) |