diff options
author | Yosef Or Boczko <yoseforb@gmail.com> | 2013-07-19 16:02:31 +0300 |
---|---|---|
committer | Yosef Or Boczko <yoseforb@gmail.com> | 2013-07-19 16:02:31 +0300 |
commit | 0ca97710796874fd0ba29a07184c3c68f796ea08 (patch) | |
tree | 31cd9ba9eefe007f9699a13038bf6b89747eeafc | |
parent | cf81bc227f1ff1784a5f5a04cc58f61786d8eb53 (diff) | |
download | gnome-control-center-0ca97710796874fd0ba29a07184c3c68f796ea08.tar.gz |
user-accounts: drop GtkStock
https://bugzilla.gnome.org/show_bug.cgi?id=704178
-rw-r--r-- | panels/user-accounts/um-fingerprint-dialog.c | 3 | ||||
-rw-r--r-- | panels/user-accounts/um-photo-dialog.c | 12 | ||||
-rw-r--r-- | 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 c00bf36ca..34a5b7eb3 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 39963dcd8..81f990ac6 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 84d2cc5b8..f6b495b41 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); |