[Xfce4-commits] <xfce4-settings:master> Use HIG icon in question dialog.

Jérôme Guelfucci noreply at xfce.org
Tue Jan 19 19:34:47 CET 2010


Updating branch refs/heads/master
         to 1df74c5aefc926aea9e866674add20142c429109 (commit)
       from 14af09b9c4ba5c9c6055720332f1eaf3608ed71c (commit)

commit 1df74c5aefc926aea9e866674add20142c429109
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Jan 19 19:27:25 2010 +0100

    Use HIG icon in question dialog.

 xfce4-settings-editor/main_window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xfce4-settings-editor/main_window.c b/xfce4-settings-editor/main_window.c
index cf905f8..bdd8fd3 100644
--- a/xfce4-settings-editor/main_window.c
+++ b/xfce4-settings-editor/main_window.c
@@ -1035,7 +1035,7 @@ channel_treeview_popup_menu (GtkWidget *widget, GdkEventButton *event, GtkBuilde
     g_signal_connect (menu, "deactivate", G_CALLBACK (gtk_menu_popdown), NULL);
 
     menu_item = gtk_image_menu_item_new_with_mnemonic (_("_Reset"));
-    image = gtk_image_new_from_stock ("gtk-remove", GTK_ICON_SIZE_MENU);
+    image = gtk_image_new_from_stock (GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU);
     gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menu_item), image);
     gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
     g_signal_connect (G_OBJECT (menu_item), "activate", G_CALLBACK (cb_channel_popup_menu_remove_item_activate), builder);
@@ -1066,7 +1066,7 @@ cb_channel_popup_menu_remove_item_activate (GtkMenuItem *item, GtkBuilder *build
     g_object_get (G_OBJECT (current_channel), "channel-name", &channel_name, NULL);
 
     response = xfce_dialog_confirm (GTK_WINDOW (gtk_builder_get_object (builder, "main_window")),
-                                    GTK_STOCK_YES,
+                                    GTK_STOCK_REVERT_TO_SAVED,
                                     _("Reset"),
                                     _("Resetting a channel will permanently remove those custom settings."),
                                     _("Are you sure you want to reset channel \"%s\" and all its properties?"),



More information about the Xfce4-commits mailing list