[gnome-system-log] window: drop GtkStock



commit edfdb91d8702279036ac9bb462515d394f9accfb
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Tue Aug 13 15:32:03 2013 +0300

    window: drop GtkStock
    
    GtkStock is deprecated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705904
    
    Signed-off-by: Yosef Or Boczko <yoseforb gmail com>

 src/logview-window.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/logview-window.c b/src/logview-window.c
index 480e5f9..3d7a768 100644
--- a/src/logview-window.c
+++ b/src/logview-window.c
@@ -874,8 +874,8 @@ message_area_create_error_box (LogviewWindow *window,
   hbox_content = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
   gtk_widget_show (hbox_content);
 
-  image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_ERROR,
-                                    GTK_ICON_SIZE_DIALOG);
+  image = gtk_image_new_from_icon_name ("dialog-error",
+                                        GTK_ICON_SIZE_DIALOG);
   gtk_widget_show (image);
   gtk_box_pack_start (GTK_BOX (hbox_content), image, FALSE, FALSE, 0);
   gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0);
@@ -1137,8 +1137,8 @@ action_open (GSimpleAction *action,
     chooser = gtk_file_chooser_dialog_new (_("Open Log"),
                                            GTK_WINDOW (logview),
                                            GTK_FILE_CHOOSER_ACTION_OPEN,
-                                           GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
-                                           GTK_STOCK_OPEN, GTK_RESPONSE_OK,
+                                           _("_Cancel"), GTK_RESPONSE_CANCEL,
+                                           _("_Open"), GTK_RESPONSE_OK,
                                            NULL);
     gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK);
     gtk_window_set_modal (GTK_WINDOW (chooser), TRUE);
@@ -1273,7 +1273,7 @@ logview_window_init (LogviewWindow *window)
   /* second pane: log */
   message_area_create_error_box (window, priv->message_area);
   gtk_info_bar_add_button (GTK_INFO_BAR (priv->message_area),
-                           GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
+                           _("_Close"), GTK_RESPONSE_CLOSE);
 
   priv->tag_table = gtk_text_tag_table_new ();
   populate_tag_table (priv->tag_table);


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