[gnome-control-center] user-accounts: drop GtkStock



commit 0ca97710796874fd0ba29a07184c3c68f796ea08
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Fri Jul 19 16:02:31 2013 +0300

    user-accounts: drop GtkStock
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704178

 panels/user-accounts/um-fingerprint-dialog.c |    3 +--
 panels/user-accounts/um-photo-dialog.c       |   12 ++++++------
 panels/user-accounts/um-utils.c              |    6 +++---
 3 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/panels/user-accounts/um-fingerprint-dialog.c b/panels/user-accounts/um-fingerprint-dialog.c
index c00bf36..34a5b7e 100644
--- a/panels/user-accounts/um-fingerprint-dialog.c
+++ b/panels/user-accounts/um-fingerprint-dialog.c
@@ -266,11 +266,10 @@ delete_fingerprints_question (GtkWindow *parent,
                                            GTK_MESSAGE_QUESTION,
                                            GTK_BUTTONS_NONE,
                                            _("Delete registered fingerprints?"));
-        gtk_dialog_add_button (GTK_DIALOG (question), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+        gtk_dialog_add_button (GTK_DIALOG (question), _("_Cancel"), GTK_RESPONSE_CANCEL);
         gtk_window_set_modal (GTK_WINDOW (question), TRUE);
 
         button = gtk_button_new_with_mnemonic (_("_Delete Fingerprints"));
-        gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_stock (GTK_STOCK_DELETE, 
GTK_ICON_SIZE_BUTTON));
         gtk_widget_set_can_default (button, TRUE);
         gtk_widget_show (button);
         gtk_dialog_add_action_widget (GTK_DIALOG (question), button, GTK_RESPONSE_OK);
diff --git a/panels/user-accounts/um-photo-dialog.c b/panels/user-accounts/um-photo-dialog.c
index 39963dc..81f990a 100644
--- a/panels/user-accounts/um-photo-dialog.c
+++ b/panels/user-accounts/um-photo-dialog.c
@@ -93,7 +93,7 @@ um_photo_dialog_crop (UmPhotoDialog *um,
         dialog = gtk_dialog_new_with_buttons ("",
                                               GTK_WINDOW (gtk_widget_get_toplevel (um->popup_button)),
                                               0,
-                                              GTK_STOCK_CANCEL,
+                                              _("_Cancel"),
                                               GTK_RESPONSE_REJECT,
                                               _("Select"),
                                               GTK_RESPONSE_ACCEPT,
@@ -197,9 +197,9 @@ update_preview (GtkFileChooser               *chooser,
                         g_object_unref (pixbuf);
                 }
                 else {
-                        gtk_image_set_from_stock (GTK_IMAGE (preview),
-                                                  GTK_STOCK_DIALOG_QUESTION,
-                                                  GTK_ICON_SIZE_DIALOG);
+                        gtk_image_set_from_icon_name (GTK_IMAGE (preview),
+                                                      "dialog-question",
+                                                      GTK_ICON_SIZE_DIALOG);
                 }
 
                 g_free (uri);
@@ -218,8 +218,8 @@ um_photo_dialog_select_file (UmPhotoDialog *um)
         chooser = gtk_file_chooser_dialog_new (_("Browse for more pictures"),
                                                GTK_WINDOW (gtk_widget_get_toplevel (um->popup_button)),
                                                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);
 
         gtk_window_set_modal (GTK_WINDOW (chooser), TRUE);
diff --git a/panels/user-accounts/um-utils.c b/panels/user-accounts/um-utils.c
index 84d2cc5..f6b495b 100644
--- a/panels/user-accounts/um-utils.c
+++ b/panels/user-accounts/um-utils.c
@@ -284,9 +284,9 @@ set_entry_validation_error (GtkEntry    *entry,
                             const gchar *text)
 {
         g_object_set (entry, "caps-lock-warning", FALSE, NULL);
-        gtk_entry_set_icon_from_stock (entry,
-                                       GTK_ENTRY_ICON_SECONDARY,
-                                       GTK_STOCK_CAPS_LOCK_WARNING);
+        gtk_entry_set_icon_from_icon_name (entry,
+                                           GTK_ENTRY_ICON_SECONDARY,
+                                           "dialog-warning-symbolic");
         gtk_entry_set_icon_activatable (entry,
                                         GTK_ENTRY_ICON_SECONDARY,
                                         TRUE);


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