Mercurial > pidgin.yaz
changeset 30528:208641cbe979
Fix the Group selectors on gevolution plugin add buddy and new person
dialogs
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 27 May 2010 19:45:20 +0000 |
parents | 34cd785f849c |
children | 58fbaa661331 |
files | pidgin/plugins/gevolution/add_buddy_dialog.c pidgin/plugins/gevolution/new_person_dialog.c |
diffstat | 2 files changed, 6 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/plugins/gevolution/add_buddy_dialog.c Thu May 27 18:56:33 2010 +0000 +++ b/pidgin/plugins/gevolution/add_buddy_dialog.c Thu May 27 19:45:20 2010 +0000 @@ -546,19 +546,11 @@ gtk_combo_box_set_active(GTK_COMBO_BOX(dialog->addrbooks_combo), 0); /* Group box */ - hbox = gtk_hbox_new(FALSE, 6); - gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); - gtk_widget_show(hbox); - - label = gtk_label_new(_("Group:")); - gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); - gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); - gtk_widget_show(label); - dialog->group_combo = - pidgin_text_combo_box_entry_new(NULL, gevo_get_groups()); - gtk_box_pack_start(GTK_BOX(hbox), dialog->group_combo, TRUE, TRUE, 0); - gtk_widget_show(dialog->group_combo); + pidgin_text_combo_box_entry_new(group, gevo_get_groups()); + pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("Group:"), NULL, + dialog->group_combo, TRUE, NULL); + gtk_widget_show_all(dialog->group_combo); /* Cool. Now we only have a little left... */
--- a/pidgin/plugins/gevolution/new_person_dialog.c Thu May 27 18:56:33 2010 +0000 +++ b/pidgin/plugins/gevolution/new_person_dialog.c Thu May 27 19:45:20 2010 +0000 @@ -293,9 +293,10 @@ G_CALLBACK(username_changed_cb), dialog); /* Group */ - dialog->group_combo = pidgin_text_combo_box_entry_new(NULL, + dialog->group_combo = pidgin_text_combo_box_entry_new(group, gevo_get_groups()); add_pref_box(sg, vbox, _("Group:"), dialog->group_combo); + gtk_widget_show_all(dialog->group_combo); /* Separator */ sep = gtk_hseparator_new();