[gaim-migrate @ 17413]

Sun, 01 Oct 2006 15:05:45 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sun, 01 Oct 2006 15:05:45 +0000
changeset 14729
e92987067d2a
parent 14728
ac17a783bb9f
child 14730
f1018b95a95d

[gaim-migrate @ 17413]
Only de-sensitize the Add button if no username is set

gtk/plugins/gevolution/new_person_dialog.c file | annotate | diff | comparison | revisions
--- 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);
 

mercurial