[seahorse-nautilus] Remove deprecated GtkStock usages.



commit 9f72bdd092fc07638d4dc98c9b84e05247f5762b
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Mon Dec 4 14:36:27 2017 +0100

    Remove deprecated GtkStock usages.

 tool/seahorse-notification.c |    8 ++++----
 tool/seahorse-tool.c         |    4 ++--
 tool/seahorse-util.c         |    6 +++---
 3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/tool/seahorse-notification.c b/tool/seahorse-notification.c
index 52f46d5..c98ab23 100644
--- a/tool/seahorse-notification.c
+++ b/tool/seahorse-notification.c
@@ -333,10 +333,10 @@ setup_fallback_notification (SeahorseNotification *snotif, gboolean urgent,
     if (snotif->icon)
         image = gtk_image_new_from_file (snotif->icon);
     else
-        image = gtk_image_new_from_stock (urgent ?
-                                            GTK_STOCK_DIALOG_WARNING :
-                                            GTK_STOCK_DIALOG_INFO,
-                                          GTK_ICON_SIZE_DIALOG);
+        image = gtk_image_new_from_icon_name (urgent ?
+                                                "dialog-warning" :
+                                                "dialog-information",
+                                              GTK_ICON_SIZE_DIALOG);
     gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0);
 
     /* Layout */
diff --git a/tool/seahorse-tool.c b/tool/seahorse-tool.c
index cf98532..ad82097 100644
--- a/tool/seahorse-tool.c
+++ b/tool/seahorse-tool.c
@@ -577,8 +577,8 @@ verify_start (SeahorseToolMode *mode, const gchar *uri, gpgme_data_t uridata,
 
         dialog = gtk_file_chooser_dialog_new (t,
                                 NULL, GTK_FILE_CHOOSER_ACTION_OPEN,
-                                GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                                GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
+                                _("Cancel"), GTK_RESPONSE_CANCEL,
+                                _("Open"), GTK_RESPONSE_ACCEPT,
                                 NULL);
 
         g_free (unesc_uri);
diff --git a/tool/seahorse-util.c b/tool/seahorse-util.c
index eee092c..4bbca6e 100644
--- a/tool/seahorse-util.c
+++ b/tool/seahorse-util.c
@@ -414,8 +414,8 @@ seahorse_util_chooser_save_new (const gchar *title, GtkWindow *parent)
 
     dialog = gtk_file_chooser_dialog_new (title,
                 parent, GTK_FILE_CHOOSER_ACTION_SAVE,
-                GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
+                _("Cancel"), GTK_RESPONSE_CANCEL,
+                _("Save"), GTK_RESPONSE_ACCEPT,
                 NULL);
 
     gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
@@ -501,7 +501,7 @@ seahorse_util_chooser_save_prompt (GtkWidget *dialog)
                         GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION,
                         GTK_BUTTONS_NONE, _("<b>A file already exists with this name.</b>\n\nDo you want to 
replace it with a new file?"));
             gtk_dialog_add_buttons (GTK_DIALOG (edlg),
-                        GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+                        _("Cancel"), GTK_RESPONSE_CANCEL,
                         _("_Replace"), GTK_RESPONSE_ACCEPT, NULL);
 
             gtk_dialog_set_default_response (GTK_DIALOG (edlg), GTK_RESPONSE_CANCEL);


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