[latexila] Don't use gtk_widget_render_icon() (deprecated)



commit 3cf5dd00f9dc3f38c88cc2ba8fd3d26029545cc4
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon May 6 18:14:17 2013 +0200

    Don't use gtk_widget_render_icon() (deprecated)
    
    Thanks Atri!

 src/utils.vala |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/utils.vala b/src/utils.vala
index 85c7ecd..d47601b 100644
--- a/src/utils.vala
+++ b/src/utils.vala
@@ -336,9 +336,8 @@ namespace Utils
 
     public Gdk.Pixbuf get_pixbuf_from_stock (string stock_id, Gtk.IconSize size)
     {
-        Gtk.Invisible w = new Gtk.Invisible ();
-        Gdk.Pixbuf pixbuf = w.render_icon (stock_id, size, "vala");
-        return pixbuf;
+        Gtk.Invisible widget = new Gtk.Invisible ();
+        return widget.render_icon_pixbuf (stock_id, size);
     }
 
     public Grid get_dialog_component (string title, Widget widget)


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