[gitg] Use the "logo" property instead of the "logo-icon-name" property



commit 4226bc2f8efee314f7da5dc9f7ff5bf004a4fb2b
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Thu Dec 5 18:04:46 2013 +0200

    Use the "logo" property instead of the "logo-icon-name" property

 gitg/gitg-application.vala        |   17 +----------------
 gitg/resources/gitg-resources.xml |    2 --
 2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/gitg/gitg-application.vala b/gitg/gitg-application.vala
index 1db78b2..7aa5597 100644
--- a/gitg/gitg-application.vala
+++ b/gitg/gitg-application.vala
@@ -204,21 +204,6 @@ public class Application : Gtk.Application
                string copyright = "Copyright \xc2\xa9 2012 Jesse van den Kieboom";
                string comments = _("gitg is a git repository viewer for gtk+/GNOME");
 
-               Gdk.Pixbuf? logo = null;
-
-               try
-               {
-                       logo = new Gdk.Pixbuf.from_resource("/org/gnome/gitg/icons/gitg256.png");
-               }
-               catch
-               {
-                       try
-                       {
-                               logo = new Gdk.Pixbuf.from_resource("org/gnome/gitg/icons/gitg512.png");
-                       }
-                       catch {}
-               }
-
                unowned List<Gtk.Window> wnds = get_windows();
 
                Gtk.show_about_dialog(wnds != null ? wnds.data : null,
@@ -228,7 +213,7 @@ public class Application : Gtk.Application
                                      "version", Config.VERSION,
                                      "website", Config.PACKAGE_URL,
                                      "website-label", _("gitg homepage"),
-                                     "logo", logo,
+                                     "logo-icon-name", Config.PACKAGE_NAME,
                                      "license-type", Gtk.License.GPL_2_0);
        }
 
diff --git a/gitg/resources/gitg-resources.xml b/gitg/resources/gitg-resources.xml
index baf1b4f..6c4b21c 100644
--- a/gitg/resources/gitg-resources.xml
+++ b/gitg/resources/gitg-resources.xml
@@ -14,8 +14,6 @@
     <file compressed="true" preprocess="xml-stripblanks">ui/gitg-commit-paned.ui</file>
     <file compressed="true" preprocess="xml-stripblanks">ui/gitg-commit-dialog.ui</file>
     <file compressed="true">ui/style.css</file>
-    <file alias="icons/gitg256.png">../../data/icons/hicolor_apps_256x256_gitg.png</file>
-    <file alias="icons/gitg512.png">../../data/icons/hicolor_apps_512x512_gitg.png</file>
   </gresource>
 </gresources>
 


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