comparison src/dialogs.c @ 4978:307c16c4b57e

[gaim-migrate @ 5313] (08:55:48) Robot101: patch to: (08:56:07) Robot101: * make online buddies appear black, not grey, when you have 'show offline buddies' turned on (08:56:21) Robot101: * random cleanup in buddy.c (tooltip/timer freeing) (08:56:43) Robot101: * stop the add buddy dialog resetting your choice of group when you choose an account (08:57:03) Robot101: * fix little memleak when loading the default window icon (08:57:16) Robot101: * make the main window use the default instead of loading the same icon itself (08:57:42) Robot101: * make the manual browser pref validate and save when the entry widget loses focus, not with a crappy button committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 03 Apr 2003 14:05:43 +0000
parents 503f61301b81
children 8e55a4d362a3
comparison
equal deleted inserted replaced
4977:503f61301b81 4978:307c16c4b57e
954 954
955 destroy_dialog(NULL, a->window); 955 destroy_dialog(NULL, a->window);
956 } 956 }
957 957
958 958
959 static GList *groups_tree(struct gaim_connection *gc) 959 static GList *groups_tree()
960 { 960 {
961 GList *tmp = NULL; 961 GList *tmp = NULL;
962 char *tmp2; 962 char *tmp2;
963 struct group *g; 963 struct group *g;
964 964
1045 { 1045 {
1046 struct addbuddy *b = g_object_get_data(w, "addbuddy"); 1046 struct addbuddy *b = g_object_get_data(w, "addbuddy");
1047 1047
1048 /* Save our account */ 1048 /* Save our account */
1049 b->gc = gc; 1049 b->gc = gc;
1050
1051 /* We also want to update our group list */
1052 gtk_combo_set_popdown_strings(GTK_COMBO(b->combo), groups_tree(gc));
1053 } 1050 }
1054 1051
1055 static void create_online_user_names(struct addbuddy *b) 1052 static void create_online_user_names(struct addbuddy *b)
1056 { 1053 {
1057 char buf[2048]; /* Never hurts to be safe ;-) */ 1054 char buf[2048]; /* Never hurts to be safe ;-) */
1179 label = gtk_label_new(_("Group")); 1176 label = gtk_label_new(_("Group"));
1180 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); 1177 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
1181 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3); 1178 gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 2, 3);
1182 1179
1183 a->combo = gtk_combo_new(); 1180 a->combo = gtk_combo_new();
1184 gtk_combo_set_popdown_strings(GTK_COMBO(a->combo), groups_tree(a->gc)); 1181 gtk_combo_set_popdown_strings(GTK_COMBO(a->combo), groups_tree());
1185 gtk_table_attach_defaults(GTK_TABLE(table), a->combo, 1, 2, 2, 3); 1182 gtk_table_attach_defaults(GTK_TABLE(table), a->combo, 1, 2, 2, 3);
1186 1183
1187 /* Set up stuff for the account box */ 1184 /* Set up stuff for the account box */
1188 label = gtk_label_new(_("Add To")); 1185 label = gtk_label_new(_("Add To"));
1189 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); 1186 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);