Mercurial > pidgin.yaz
diff gtk/plugins/gevolution/new_person_dialog.c @ 14667:70f68b34b311
[gaim-migrate @ 17413]
Only de-sensitize the Add button if no username is set
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 01 Oct 2006 15:05:45 +0000 |
parents | 009db0b357b5 |
children |
line wrap: on
line diff
--- a/gtk/plugins/gevolution/new_person_dialog.c Sun Oct 01 06:11:05 2006 +0000 +++ b/gtk/plugins/gevolution/new_person_dialog.c Sun Oct 01 15:05:45 2006 +0000 @@ -412,7 +412,8 @@ /* Add button */ button = gtk_button_new_from_stock(GTK_STOCK_ADD); dialog->add_button = button; - gtk_widget_set_sensitive(button, FALSE); + if (username == NULL || *username == '\0') + gtk_widget_set_sensitive(button, FALSE); gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); gtk_widget_show(button);