[gnome-applets] trashapplet: don't use deprecated GtkStock



commit 1bd25f6df8824b4b9833b982c0b17067ab6b7402
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jul 10 00:14:49 2014 +0300

    trashapplet: don't use deprecated GtkStock

 trashapplet/src/trash-empty.c |    2 +-
 trashapplet/src/trashapplet.c |    7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/trashapplet/src/trash-empty.c b/trashapplet/src/trash-empty.c
index bb33c5c..4bf45a8 100644
--- a/trashapplet/src/trash-empty.c
+++ b/trashapplet/src/trash-empty.c
@@ -337,7 +337,7 @@ trash_empty_show_confirmation_dialog (GtkWidget *parent)
   atk_object_set_role (gtk_widget_get_accessible (dialog), ATK_ROLE_ALERT);
   gtk_window_set_wmclass (GTK_WINDOW (dialog), "empty_trash", "Nautilus");
 
-  gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL,
+  gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"),
                          GTK_RESPONSE_CANCEL);
 
   button = gtk_button_new_with_mnemonic (_("_Empty Trash"));
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c
index 24ab444..9dfbc18 100644
--- a/trashapplet/src/trashapplet.c
+++ b/trashapplet/src/trashapplet.c
@@ -466,8 +466,7 @@ confirm_delete_immediately (GtkWidget *parent_view,
   gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), hbox,
                       FALSE, FALSE, 0);
 
-  image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_QUESTION,
-                                    GTK_ICON_SIZE_DIALOG);
+  image = gtk_image_new_from_icon_name ("dialog-question", GTK_ICON_SIZE_DIALOG);
   gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0);
   gtk_widget_show (image);
   gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
@@ -506,9 +505,9 @@ confirm_delete_immediately (GtkWidget *parent_view,
   gtk_widget_show (label);
   g_free (detail);
 
-  gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL,
+  gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"),
                          GTK_RESPONSE_CANCEL);
-  gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_DELETE,
+  gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Delete"),
                          GTK_RESPONSE_YES);
   gtk_dialog_set_default_response (GTK_DIALOG (dialog),
                                    GTK_RESPONSE_YES);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]