changeset 26782:5d4400b197d5

Enable/disable the buttons in the savedstatus dialog properly.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 02 May 2009 20:58:57 +0000
parents d387f1164b3a
children 2a3019c06631
files pidgin/gtksavedstatuses.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksavedstatuses.c	Sat May 02 19:14:07 2009 +0000
+++ b/pidgin/gtksavedstatuses.c	Sat May 02 20:58:57 2009 +0000
@@ -390,7 +390,7 @@
 
 	gtk_widget_set_sensitive(dialog->use_button, (num_selected == 1) && can_use);
 	gtk_widget_set_sensitive(dialog->modify_button, (num_selected > 0));
-	gtk_widget_set_sensitive(dialog->delete_button, can_delete);
+	gtk_widget_set_sensitive(dialog->delete_button, num_selected > 0 && can_delete);
 
     g_list_free(sel_paths);
 }
@@ -648,6 +648,7 @@
 	button = pidgin_dialog_add_button(GTK_DIALOG(win), PIDGIN_STOCK_MODIFY,
 			G_CALLBACK(status_window_modify_cb), dialog);
 	dialog->modify_button = button;
+	gtk_widget_set_sensitive(button, FALSE);
 
 	/* Delete button */
 	button = pidgin_dialog_add_button(GTK_DIALOG(win), GTK_STOCK_DELETE,