Mercurial > pidgin.yaz
comparison src/multi.c @ 2431:5948060f486c
[gaim-migrate @ 2444]
hi
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 05 Oct 2001 19:53:38 +0000 |
parents | 123aaa84109a |
children | 5cbe86a444d9 |
comparison
equal
deleted
inserted
replaced
2430:0ba75351a01b | 2431:5948060f486c |
---|---|
479 | 479 |
480 static void reset_icon(GtkWidget *w, struct aim_user *u) | 480 static void reset_icon(GtkWidget *w, struct aim_user *u) |
481 { | 481 { |
482 if (u) { | 482 if (u) { |
483 u->tmp_iconfile[0] = 0; | 483 u->tmp_iconfile[0] = 0; |
484 gtk_entry_set_text(GTK_ENTRY(u->iconentry), u->iconfile); | 484 gtk_entry_set_text(GTK_ENTRY(u->iconentry), ""); |
485 } else { | 485 } else { |
486 tmpusr.tmp_iconfile[0] = 0; | 486 tmpusr.tmp_iconfile[0] = 0; |
487 gtk_entry_set_text(GTK_ENTRY(tmpusr.iconentry), ""); | 487 gtk_entry_set_text(GTK_ENTRY(tmpusr.iconentry), ""); |
488 } | 488 } |
489 } | 489 } |
493 GtkWidget *hbox; | 493 GtkWidget *hbox; |
494 GtkWidget *label; | 494 GtkWidget *label; |
495 GtkWidget *name; | 495 GtkWidget *name; |
496 GtkWidget *browse; | 496 GtkWidget *browse; |
497 GtkWidget *reset; | 497 GtkWidget *reset; |
498 | |
499 if (u) | |
500 g_snprintf(u->tmp_iconfile, sizeof(u->tmp_iconfile), "%s", u->iconfile); | |
501 else | |
502 g_snprintf(tmpusr.tmp_iconfile, sizeof(tmpusr.tmp_iconfile), "%s", tmpusr.iconfile); | |
498 | 503 |
499 hbox = gtk_hbox_new(FALSE, 0); | 504 hbox = gtk_hbox_new(FALSE, 0); |
500 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); | 505 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); |
501 gtk_widget_show(hbox); | 506 gtk_widget_show(hbox); |
502 | 507 |