Merge branch 'master' of http://www.project-moonshot.org/git/moonshot-ui
[moonshot-ui.git] / src / moonshot-utils.vala
index b6e4410..402e6d7 100644 (file)
@@ -14,8 +14,17 @@ public Gdk.Pixbuf? find_icon_sized (string name, Gtk.IconSize icon_size)
  * load them manually.
  */
 
+public bool gtk_available = false;
+
+public Gdk.Pixbuf? get_pixbuf(IdCard id)
+{
+    return find_icon("avatar-default", 48);
+}
+
 public Gdk.Pixbuf? find_icon (string name, int size)
 {
+    if (!gtk_available)
+        return null;
     try
     {
 #if OS_WIN32