changeset 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 0ba75351a01b
children 2a4a50036e25
files src/multi.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/multi.c	Fri Oct 05 19:52:11 2001 +0000
+++ b/src/multi.c	Fri Oct 05 19:53:38 2001 +0000
@@ -481,7 +481,7 @@
 {
 	if (u) {
 		u->tmp_iconfile[0] = 0;
-		gtk_entry_set_text(GTK_ENTRY(u->iconentry), u->iconfile);
+		gtk_entry_set_text(GTK_ENTRY(u->iconentry), "");
 	} else {
 		tmpusr.tmp_iconfile[0] = 0;
 		gtk_entry_set_text(GTK_ENTRY(tmpusr.iconentry), "");
@@ -496,6 +496,11 @@
 	GtkWidget *browse;
 	GtkWidget *reset;
 
+	if (u)
+		g_snprintf(u->tmp_iconfile, sizeof(u->tmp_iconfile), "%s", u->iconfile);
+	else
+		g_snprintf(tmpusr.tmp_iconfile, sizeof(tmpusr.tmp_iconfile), "%s", tmpusr.iconfile);
+
 	hbox = gtk_hbox_new(FALSE, 0);
 	gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5);
 	gtk_widget_show(hbox);