[eog] EogCloseConfirmationDialog: Really fix GtkStock usage



commit 4e0d34351c941cf0d8ea4573ee5766525afd5687
Author: Felix Riemann <friemann gnome org>
Date:   Mon Oct 28 21:39:08 2013 +0100

    EogCloseConfirmationDialog: Really fix GtkStock usage
    
    This was incomplete in commit f0a2faf9.

 src/eog-close-confirmation-dialog.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/eog-close-confirmation-dialog.c b/src/eog-close-confirmation-dialog.c
index f37fb70..7f39ca4 100644
--- a/src/eog-close-confirmation-dialog.c
+++ b/src/eog-close-confirmation-dialog.c
@@ -170,19 +170,19 @@ add_buttons (EogCloseConfirmationDialog          *dlg,
 
        if (buttons & EOG_CLOSE_CONFIRMATION_DIALOG_CANCEL_BUTTON) {
                gtk_dialog_add_button (GTK_DIALOG (dlg),
-                                      GTK_STOCK_CANCEL,
+                                      _("_Cancel"),
                                       EOG_CLOSE_CONFIRMATION_DIALOG_RESPONSE_CANCEL);
        }
 
        if (buttons & EOG_CLOSE_CONFIRMATION_DIALOG_SAVE_BUTTON) {
                gtk_dialog_add_button (GTK_DIALOG (dlg),
-                                      GTK_STOCK_SAVE,
+                                      _("_Save"),
                                       EOG_CLOSE_CONFIRMATION_DIALOG_RESPONSE_SAVE);
        }
 
        if (buttons & EOG_CLOSE_CONFIRMATION_DIALOG_SAVEAS_BUTTON) {
                gtk_dialog_add_button (GTK_DIALOG (dlg),
-                                      GTK_STOCK_SAVE_AS,
+                                      _("Save _As"),
                                       EOG_CLOSE_CONFIRMATION_DIALOG_RESPONSE_SAVEAS);
        }
 
@@ -617,8 +617,8 @@ build_multiple_imgs_dialog (EogCloseConfirmationDialog *dlg)
                            hbox, TRUE, TRUE, 0);
 
        /* Image */
-       image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
-                                         GTK_ICON_SIZE_DIALOG);
+       image = gtk_image_new_from_icon_name ("dialog-warning",
+                                             GTK_ICON_SIZE_DIALOG);
        gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0);
        gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
 


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