[gnome-panel/wip/gnome-3.10+: 23/75] panel-addto.c: don't use deprecated GTK_STOCK_*



commit 536619feff238dc53044909a7fda81fd12259d02
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Jun 4 23:07:40 2014 +0300

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

 gnome-panel/panel-addto.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/gnome-panel/panel-addto.c b/gnome-panel/panel-addto.c
index 23eb179..e5a6945 100644
--- a/gnome-panel/panel-addto.c
+++ b/gnome-panel/panel-addto.c
@@ -1138,13 +1138,11 @@ panel_addto_selection_changed (GtkTreeSelection *selection,
 
        if (data->type == PANEL_ADDTO_LAUNCHER_MENU) {
                gtk_button_set_label (GTK_BUTTON (dialog->add_button),
-                                     GTK_STOCK_GO_FORWARD);
+                                     _("_Forward"));
        } else {
                gtk_button_set_label (GTK_BUTTON (dialog->add_button),
-                                     GTK_STOCK_ADD);
+                                     _("_Add"));
        }
-       gtk_button_set_use_stock (GTK_BUTTON (dialog->add_button),
-                                 TRUE);
 
        /* only allow dragging applets if we can add applets */
        if (panel_layout_is_writable ()) {
@@ -1236,13 +1234,13 @@ panel_addto_dialog_new (PanelWidget *panel_widget)
 
        dialog->addto_dialog = gtk_dialog_new ();
        dialog->back_button = gtk_dialog_add_button (GTK_DIALOG (dialog->addto_dialog),
-                                                    GTK_STOCK_GO_BACK,
+                                                    _("_Back"),
                                                     PANEL_ADDTO_RESPONSE_BACK);
        dialog->add_button = gtk_dialog_add_button (GTK_DIALOG (dialog->addto_dialog),
-                                                    GTK_STOCK_ADD,
+                                                    _("_Add"),
                                                     PANEL_ADDTO_RESPONSE_ADD);
        gtk_dialog_add_button (GTK_DIALOG (dialog->addto_dialog),
-                              GTK_STOCK_CLOSE,
+                              _("_Close"),
                               GTK_RESPONSE_CLOSE);
        gtk_widget_set_sensitive (GTK_WIDGET (dialog->add_button), FALSE);
        gtk_dialog_set_default_response (GTK_DIALOG (dialog->addto_dialog),


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