[latexila] Use image-x-generic icon-name instead of stock-id



commit 127a88c03e61aff016125950c71b634c3368a684
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Dec 24 19:15:19 2014 +0100

    Use image-x-generic icon-name instead of stock-id
    
    So no need to register some icon-names as stock-ids.

 src/latex_menu.vala  |    2 +-
 src/stock_icons.vala |   15 ---------------
 2 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/src/latex_menu.vala b/src/latex_menu.vala
index f29b847..a11f0f4 100644
--- a/src/latex_menu.vala
+++ b/src/latex_menu.vala
@@ -70,7 +70,7 @@ public class LatexMenu : Gtk.ActionGroup
             N_("Align Left - \\begin{flushleft}"), on_env_left },
         { "EnvRight", Stock.JUSTIFY_RIGHT, "\\begin{flush_right}", null,
             N_("Align Right - \\begin{flushright}"), on_env_right },
-        { "EnvFigure", "image", "\\begin{_figure}", null,
+        { "EnvFigure", "image-x-generic", "\\begin{_figure}", null,
             N_("Figure - \\begin{figure}"), on_env_figure },
         { "EnvTable", "table-size16", "\\begin{_table}", null,
             N_("Table - \\begin{table}"), on_env_table },
diff --git a/src/stock_icons.vala b/src/stock_icons.vala
index 5ebe5ce..aa1d73e 100644
--- a/src/stock_icons.vala
+++ b/src/stock_icons.vala
@@ -29,21 +29,6 @@ public class StockIcons
     public StockIcons ()
     {
         register_new_stock_icons ();
-
-        add_theme_icon_to_stock ("image-x-generic", "image");
-    }
-
-    private void add_theme_icon_to_stock (string icon_name, string stock_id)
-    {
-        Gtk.IconSource icon_source = new Gtk.IconSource ();
-        icon_source.set_icon_name (icon_name);
-
-        Gtk.IconSet icon_set = new Gtk.IconSet ();
-        icon_set.add_source (icon_source);
-
-        Gtk.IconFactory icon_factory = new Gtk.IconFactory ();
-        icon_factory.add (stock_id, icon_set);
-        icon_factory.add_default ();
     }
 
     private void register_new_stock_icons ()


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