Load icons from theme
authorSergio Villar Senín <svillar@igalia.com>
Tue, 1 Dec 2009 11:22:35 +0000 (12:22 +0100)
committerSergio Villar Senín <svillar@igalia.com>
Tue, 1 Dec 2009 11:22:35 +0000 (12:22 +0100)
src/gtk/modest-platform.c

index 89c974c..61b91cc 100644 (file)
@@ -212,9 +212,11 @@ modest_platform_show_uri_popup (const gchar *uri)
 GdkPixbuf*
 modest_platform_get_icon (const gchar *name, guint icon_size)
 {
-       g_warning ("Not implemented %s", __FUNCTION__);
-
-       return NULL;
+       return gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
+                                        name,
+                                        icon_size,
+                                        0,
+                                        NULL);
 }
 
 const gchar*