Mercurial > pidgin.yaz
diff src/gtkaccount.c @ 5644:213e999fa5cc
[gaim-migrate @ 6058]
Added a generic function for creating and automatically filling a drop-down
with a list of loaded protocols plugins, and used it in the new account
editor.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 01 Jun 2003 23:14:31 +0000 |
parents | 5e9babc828c4 |
children | 0cc2d99b7c44 |
line wrap: on
line diff
--- a/src/gtkaccount.c Sun Jun 01 21:36:40 2003 +0000 +++ b/src/gtkaccount.c Sun Jun 01 23:14:31 2003 +0000 @@ -97,10 +97,12 @@ /************************************************************************** * Add/Modify Account dialog **************************************************************************/ -static GtkWidget * -__make_protocol_menu(AccountPrefsDialog *dialog) +static void +__set_account_protocol(GtkWidget *item, GaimProtocol protocol) { - return gtk_button_new(); + AccountPrefsDialog *dialog; + + dialog = g_object_get_data(G_OBJECT(item), "user_data"); } static GtkWidget * @@ -148,7 +150,9 @@ gtk_widget_show(vbox); /* Protocol */ - dialog->protocol_menu = __make_protocol_menu(dialog); + dialog->protocol_menu = gaim_gtk_protocol_option_menu_new(-1, + G_CALLBACK(__set_account_protocol), dialog); + __add_pref_box(dialog, vbox, _("Protocol:"), dialog->protocol_menu); /* Screen Name */