# HG changeset patch # User Sadrul Habib Chowdhury # Date 1241297937 0 # Node ID 5d4400b197d52a7408eb9131eb0a8a8bcce72a47 # Parent d387f1164b3a65cf954578891b309106b7f376b9 Enable/disable the buttons in the savedstatus dialog properly. diff -r d387f1164b3a -r 5d4400b197d5 pidgin/gtksavedstatuses.c --- 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,