[gnome-panel] panel-ditem-editor.c: don't use deprecated GTK_STOCK_*



commit d05c21d9fc136b97ce141f9f7de0b1e140090a1e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Jun 4 22:51:03 2014 +0300

    panel-ditem-editor.c: don't use deprecated GTK_STOCK_*

 gnome-panel/panel-ditem-editor.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gnome-panel/panel-ditem-editor.c b/gnome-panel/panel-ditem-editor.c
index 5e5c60f..2dd7bb0 100644
--- a/gnome-panel/panel-ditem-editor.c
+++ b/gnome-panel/panel-ditem-editor.c
@@ -644,19 +644,19 @@ panel_ditem_editor_make_ui (PanelDItemEditor *dialog)
                                       priv->comment_entry);
 
        priv->revert_button = gtk_dialog_add_button (GTK_DIALOG (dialog),
-                                                    GTK_STOCK_REVERT_TO_SAVED,
+                                                    _("_Revert"),
                                                     REVERT_BUTTON);
        gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
                                           REVERT_BUTTON,
                                           FALSE);
        priv->close_button = gtk_dialog_add_button (GTK_DIALOG (dialog),
-                                                   GTK_STOCK_CLOSE,
+                                                   _("_Close"),
                                                    GTK_RESPONSE_CLOSE);
        priv->cancel_button = gtk_dialog_add_button (GTK_DIALOG (dialog),
-                                                    GTK_STOCK_CANCEL,
+                                                    _("_Cancel"),
                                                     GTK_RESPONSE_CANCEL);
        priv->ok_button = gtk_dialog_add_button (GTK_DIALOG (dialog),
-                                                GTK_STOCK_OK,
+                                                _("_OK"),
                                                 GTK_RESPONSE_OK);
 
        /* FIXME: There needs to be a way to edit ALL keys/sections */
@@ -995,9 +995,9 @@ command_browse_button_clicked (PanelDItemEditor *dialog)
 
        chooser = gtk_file_chooser_dialog_new ("", GTK_WINDOW (dialog),
                                               GTK_FILE_CHOOSER_ACTION_OPEN,
-                                              GTK_STOCK_CANCEL,
+                                              _("_Cancel"),
                                               GTK_RESPONSE_CANCEL,
-                                              GTK_STOCK_OPEN,
+                                              _("_Open"),
                                               GTK_RESPONSE_ACCEPT,
                                               NULL);
        gtk_window_set_destroy_with_parent (GTK_WINDOW (chooser), TRUE);


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