changeset 26865:2a3019c06631

merge of '3993504a85f5cbebaeace03466d79cda9803f240' and 'b0e4f59562899debec9d9703c55843aec700aeac'
author Paul Aurich <paul@darkrain42.org>
date Sat, 02 May 2009 21:13:02 +0000
parents 0c1983abe991 (current diff) 5d4400b197d5 (diff)
children 0c077a605b8a 29e1f96ccc89
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksavedstatuses.c	Sat May 02 20:54:10 2009 +0000
+++ b/pidgin/gtksavedstatuses.c	Sat May 02 21:13:02 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,