pidgin: b0e4f595: Enable/disable the buttons in the saveds..

sadrul at pidgin.im sadrul at pidgin.im
Sat May 2 16:55:34 EDT 2009


-----------------------------------------------------------------
Revision: b0e4f59562899debec9d9703c55843aec700aeac
Ancestor: 8f2b3a7063a7a0e5cae9de55e55f7066c0d202d6
Author: sadrul at pidgin.im
Date: 2009-05-02T20:58:57
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b0e4f59562899debec9d9703c55843aec700aeac

Modified files:
        pidgin/gtksavedstatuses.c

ChangeLog: 

Enable/disable the buttons in the savedstatus dialog properly.

-------------- next part --------------
============================================================
--- pidgin/gtksavedstatuses.c	78adf400bf44727c228e61eae98e7a0f4e349bda
+++ pidgin/gtksavedstatuses.c	4b3a368e7e485d7d12983384b4db9fff6c459cf8
@@ -390,7 +390,7 @@ status_selected_cb(GtkTreeSelection *sel
 
 	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 @@ pidgin_status_window_show(void)
 	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,


More information about the Commits mailing list