[gnome-calculator] Stop using GtkStock



commit 1ac0b926207be0678745ac2f29cc9cdb3b0d37f0
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Oct 15 10:29:57 2013 +1300

    Stop using GtkStock

 src/math-variable-popup.vala |    6 +++---
 src/math-window.vala         |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/math-variable-popup.vala b/src/math-variable-popup.vala
index 05849a1..ea6a58f 100644
--- a/src/math-variable-popup.vala
+++ b/src/math-variable-popup.vala
@@ -55,7 +55,7 @@ public class MathVariablePopup : Gtk.Window
         add_variable_button = new Gtk.Button ();
         add_variable_button.sensitive = false;
         add_variable_button.clicked.connect (add_variable_cb);
-        var image = new Gtk.Image.from_stock (Gtk.Stock.ADD, Gtk.IconSize.BUTTON);
+        var image = new Gtk.Image.from_icon_name ("list-add", Gtk.IconSize.BUTTON);
         add_variable_button.add (image);
         entry.pack_start (add_variable_button, false, true, 0);
         image.show ();
@@ -162,7 +162,7 @@ public class MathVariablePopup : Gtk.Window
         {
             button = new Gtk.Button ();
             button.set_data<string> ("variable_name", name);
-            var image = new Gtk.Image.from_stock (Gtk.Stock.SAVE, Gtk.IconSize.BUTTON);
+            var image = new Gtk.Image.from_icon_name ("document-save", Gtk.IconSize.BUTTON);
             button.add (image);
             hbox.pack_start (button, false, true, 0);
             button.clicked.connect (save_variable_cb);
@@ -171,7 +171,7 @@ public class MathVariablePopup : Gtk.Window
 
             button = new Gtk.Button ();
             button.set_data<string> ("variable_name", name);
-            image = new Gtk.Image.from_stock (Gtk.Stock.DELETE, Gtk.IconSize.BUTTON);
+            image = new Gtk.Image.from_icon_name ("edit-delete", Gtk.IconSize.BUTTON);
             button.add (image);
             hbox.pack_start (button, false, true, 0);
             button.clicked.connect (delete_variable_cb);
diff --git a/src/math-window.vala b/src/math-window.vala
index 009625a..80242a2 100644
--- a/src/math-window.vala
+++ b/src/math-window.vala
@@ -64,7 +64,7 @@ public class MathWindow : Gtk.ApplicationWindow
                                             Gtk.ButtonsType.NONE,
                                             "%s", title);
         dialog.format_secondary_text ("%s", contents);
-        dialog.add_buttons (Gtk.Stock.QUIT, Gtk.ResponseType.ACCEPT);
+        dialog.add_buttons (_("_Quit"), Gtk.ResponseType.ACCEPT);
 
         dialog.run ();
 


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