[longomatch] Fix loading of stock icons.



commit 0ab364883b30f7baf6577d47e1dad77a169335cd
Author: Julien Moutte <julien fluendo com>
Date:   Wed Feb 11 17:07:04 2015 +0100

    Fix loading of stock icons.

 LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs |   10 +++++-----
 LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs 
b/LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs
index 83d1808..cab92e0 100644
--- a/LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs
+++ b/LongoMatch.GUI/Gui/Dialog/EventTypeTagsEditor.cs
@@ -204,16 +204,16 @@ namespace LongoMatch.Gui.Dialog
                {
                        Button b = new Button ();
                        Alignment a = new Alignment (0.5F, 0.5F, 0F, 0F);
-                       Gtk.Image i = new Gtk.Image (Misc.LoadIcon (name, 24));
+                       Gtk.Image i = new Gtk.Image (Misc.LoadStockIcon (b, name, IconSize.Button));
                        a.Add (i);
                        b.Add (a);
                        return b;
                }
 
-               Button CreateButton (string s, int size)
+               Button CreateButton (string s, IconSize size)
                {
                        Button b = new Button ();
-                       Gtk.Image i = new Gtk.Image (Misc.LoadIcon ("gtk-add", size));
+                       Gtk.Image i = new Gtk.Image (Misc.LoadStockIcon (b, "gtk-add", size));
                        Label l = new Label (s);
                        HBox box = new HBox ();
                        box.PackStart (i, false, false, 5);
@@ -224,7 +224,7 @@ namespace LongoMatch.Gui.Dialog
 
                Button CreateAddGroupButton ()
                {
-                       Button b = CreateButton (Catalog.GetString ("Add new group"), 48);
+                       Button b = CreateButton (Catalog.GetString ("Add new group"), IconSize.LargeToolbar);
                        b.Clicked += (sender, e) => {
                                AddNewGroup (Catalog.GetString ("New group"), new List<Tag> ());
                        };
@@ -233,7 +233,7 @@ namespace LongoMatch.Gui.Dialog
                
                Button CreateAddTagButton (TagsGroup g)
                {
-                       Button b = CreateButton (Catalog.GetString ("Add new tag"), 24);
+                       Button b = CreateButton (Catalog.GetString ("Add new tag"), IconSize.Button);
                        b.Clicked += (sender, e) => {
                                AddTag (g);
                        };
diff --git a/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs 
b/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
index cc12950..4995515 100644
--- a/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/VideoConversionTool.cs
@@ -54,7 +54,7 @@ namespace LongoMatch.Gui.Dialog
                        addbutton1.Clicked += OnAddbuttonClicked;
                        buttonOk.Clicked += OnButtonOkClicked;
                        convertimage.Pixbuf = Misc.LoadIcon ("longomatch-video-converter-big", 64);
-                       addimage.Pixbuf = Misc.LoadIcon ("gtk-add", IconSize.Button);
+                       addimage.Pixbuf = Misc.LoadStockIcon (addimage, "gtk-add", IconSize.Button);
                        eventbox1.ModifyBg (StateType.Normal, Misc.ToGdkColor 
(Config.Style.PaletteBackgroundDark));
                        addbutton1.CanFocus = false;
                        scrolledwindow1.Visible = false;


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