Mercurial > pidgin
comparison src/multi.c @ 2444:13ce96daf30f
[gaim-migrate @ 2457]
hi
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sat, 06 Oct 2001 05:34:44 +0000 |
| parents | 895e2469cb3a |
| children | adb5106341de |
comparison
equal
deleted
inserted
replaced
| 2443:7f2432a87376 | 2444:13ce96daf30f |
|---|---|
| 422 GtkWidget *label; | 422 GtkWidget *label; |
| 423 GtkWidget *name; | 423 GtkWidget *name; |
| 424 GtkWidget *browse; | 424 GtkWidget *browse; |
| 425 GtkWidget *reset; | 425 GtkWidget *reset; |
| 426 | 426 |
| 427 g_snprintf(u->iconfile, sizeof(u->iconfile), "%s", u->user->iconfile); | 427 if (u->user) |
| 428 g_snprintf(u->iconfile, sizeof(u->iconfile), "%s", u->user->iconfile); | |
| 428 | 429 |
| 429 hbox = gtk_hbox_new(FALSE, 0); | 430 hbox = gtk_hbox_new(FALSE, 0); |
| 430 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); | 431 gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5); |
| 431 gtk_widget_show(hbox); | 432 gtk_widget_show(hbox); |
| 432 | 433 |
| 511 u->pwdbox = pwdbox; | 512 u->pwdbox = pwdbox; |
| 512 u->pass = pass; | 513 u->pass = pass; |
| 513 u->rempass = rempass; | 514 u->rempass = rempass; |
| 514 u->checkmail = checkmail; | 515 u->checkmail = checkmail; |
| 515 u->iconsel = iconsel; | 516 u->iconsel = iconsel; |
| 516 gtk_entry_set_text(GTK_ENTRY(name), u->user->username); | 517 if (u->user) { |
| 517 gtk_entry_set_text(GTK_ENTRY(pass), u->user->password); | 518 gtk_entry_set_text(GTK_ENTRY(name), u->user->username); |
| 519 gtk_entry_set_text(GTK_ENTRY(pass), u->user->password); | |
| 520 } | |
| 518 gtk_entry_set_editable(GTK_ENTRY(name), FALSE); | 521 gtk_entry_set_editable(GTK_ENTRY(name), FALSE); |
| 519 } | 522 } |
| 520 | 523 |
| 521 static void generate_prpl_options(struct mod_user *u, GtkWidget *book) | 524 static void generate_prpl_options(struct mod_user *u, GtkWidget *book) |
| 522 { | 525 { |
