[gnome-boxes] util-app: copy create_symbolic_emblem() from gnome-documents



commit 965910298a6750439871406eb1bc26c5a1f4acc6
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Mon Aug 20 18:59:01 2012 +0200

    util-app: copy create_symbolic_emblem() from gnome-documents
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682292

 src/util-app.vala |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/util-app.vala b/src/util-app.vala
index 87885b4..adea140 100644
--- a/src/util-app.vala
+++ b/src/util-app.vala
@@ -357,4 +357,14 @@ namespace Boxes {
 
         return (string) udn;
     }
+
+    // shamelessly copied from gnome-documents
+    public GLib.Icon create_symbolic_emblem (string name) {
+        var pix = Gd.create_symbolic_icon (name, 128);
+
+        if (pix == null)
+            pix = new GLib.ThemedIcon (name);
+
+        return pix;
+    }
 }



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