Mercurial > pidgin.yaz
comparison src/buddy_chat.c @ 2257:eae25a0309c1
[gaim-migrate @ 2267]
eyh luuve to leek you all uuver uur bohdee.
sorry. i had to put "leek" in there and i already used "leek soup". and one of my co-workers is french.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 10 Sep 2001 17:09:46 +0000 |
parents | 73872bedf07e |
children | a9787aad60f3 |
comparison
equal
deleted
inserted
replaced
2256:73872bedf07e | 2257:eae25a0309c1 |
---|---|
314 GSList *grp; | 314 GSList *grp; |
315 GSList *bl; | 315 GSList *bl; |
316 struct group *g; | 316 struct group *g; |
317 struct buddy *buddy; | 317 struct buddy *buddy; |
318 | 318 |
319 GList *tmp = NULL; | 319 static GList *tmp = NULL; |
320 | |
321 if (tmp) | |
322 g_list_free(tmp); | |
320 | 323 |
321 tmp = g_list_append(tmp, ""); | 324 tmp = g_list_append(tmp, ""); |
322 | 325 |
323 if (gc) { | 326 if (gc) { |
324 grp = gc->groups; | 327 grp = gc->groups; |
330 | 333 |
331 while (bl) { | 334 while (bl) { |
332 buddy = (struct buddy *)bl->data; | 335 buddy = (struct buddy *)bl->data; |
333 | 336 |
334 if (buddy->present) | 337 if (buddy->present) |
335 tmp = g_list_append(tmp, g_strdup(buddy->name)); | 338 tmp = g_list_append(tmp, buddy->name); |
336 | 339 |
337 bl = g_slist_next(bl); | 340 bl = g_slist_next(bl); |
338 } | 341 } |
339 | 342 |
340 grp = g_slist_next(grp); | 343 grp = g_slist_next(grp); |
350 GtkWidget *cancel; | 353 GtkWidget *cancel; |
351 GtkWidget *invite_btn; | 354 GtkWidget *invite_btn; |
352 GtkWidget *label; | 355 GtkWidget *label; |
353 GtkWidget *bbox; | 356 GtkWidget *bbox; |
354 GtkWidget *vbox; | 357 GtkWidget *vbox; |
355 GtkWidget *topbox; | |
356 GtkWidget *table; | 358 GtkWidget *table; |
357 GtkWidget *frame; | 359 GtkWidget *frame; |
358 | 360 |
359 if (!invite) { | 361 if (!invite) { |
360 invite = gtk_window_new(GTK_WINDOW_DIALOG); | 362 invite = gtk_window_new(GTK_WINDOW_DIALOG); |
372 gtk_container_set_border_width(GTK_CONTAINER(table), 5); | 374 gtk_container_set_border_width(GTK_CONTAINER(table), 5); |
373 | 375 |
374 gtk_container_set_border_width(GTK_CONTAINER(frame), 5); | 376 gtk_container_set_border_width(GTK_CONTAINER(frame), 5); |
375 | 377 |
376 /* Now we should fill out all of the names */ | 378 /* Now we should fill out all of the names */ |
377 /* FIXME: Does this cause a leak? */ | |
378 gtk_combo_set_popdown_strings(GTK_COMBO(inviteentry), generate_invite_user_names(b->gc)); | 379 gtk_combo_set_popdown_strings(GTK_COMBO(inviteentry), generate_invite_user_names(b->gc)); |
379 | 380 |
380 if (display_options & OPT_DISP_COOL_LOOK) { | 381 if (display_options & OPT_DISP_COOL_LOOK) { |
381 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); | 382 gtk_button_set_relief(GTK_BUTTON(cancel), GTK_RELIEF_NONE); |
382 gtk_button_set_relief(GTK_BUTTON(invite_btn), GTK_RELIEF_NONE); | 383 gtk_button_set_relief(GTK_BUTTON(invite_btn), GTK_RELIEF_NONE); |