+ if (!strcmp (account_id, MODEST_MMC_ACCOUNT_ID)) {
+ if (!ammc_pixbuf)
+ ammc_pixbuf = gdk_pixbuf_copy (modest_platform_get_icon (MODEST_FOLDER_ICON_MMC,
+ MODEST_ICON_SIZE_SMALL));
+
+ if (!ammc_pixbuf_open) {
+ GdkPixbuf *emblem = modest_platform_get_icon ("qgn_list_gene_fldr_exp",
+ MODEST_ICON_SIZE_SMALL);
+ ammc_pixbuf_open = gdk_pixbuf_copy (ammc_pixbuf);
+ gdk_pixbuf_composite (emblem, ammc_pixbuf_open, 0, 0,
+ MIN (gdk_pixbuf_get_width (emblem),
+ gdk_pixbuf_get_width (ammc_pixbuf_open)),
+ MIN (gdk_pixbuf_get_height (emblem),
+ gdk_pixbuf_get_height (ammc_pixbuf_open)),
+ 0, 0, 1, 1, GDK_INTERP_NEAREST, 255);
+ g_object_unref (emblem);
+ }
+
+ if (!ammc_pixbuf_close) {
+ GdkPixbuf *emblem = modest_platform_get_icon ("qgn_list_gene_fldr_clp",
+ MODEST_ICON_SIZE_SMALL);
+ ammc_pixbuf_close = gdk_pixbuf_copy (ammc_pixbuf);
+ gdk_pixbuf_composite (emblem, ammc_pixbuf_close, 0, 0,
+ MIN (gdk_pixbuf_get_width (emblem),
+ gdk_pixbuf_get_width (ammc_pixbuf_close)),
+ MIN (gdk_pixbuf_get_height (emblem),
+ gdk_pixbuf_get_height (ammc_pixbuf_close)),
+ 0, 0, 1, 1, GDK_INTERP_NEAREST, 255);
+ g_object_unref (emblem);
+ }
+
+
+ pixbuf = g_object_ref (ammc_pixbuf);
+ pixbuf_open = g_object_ref (ammc_pixbuf_open);
+ pixbuf_close = g_object_ref (ammc_pixbuf_close);
+
+ } else {
+
+ if (!anorm_pixbuf)
+ anorm_pixbuf = gdk_pixbuf_copy (modest_platform_get_icon (MODEST_FOLDER_ICON_ACCOUNT,
+ MODEST_ICON_SIZE_SMALL));
+ if (!anorm_pixbuf_open) {
+ GdkPixbuf *emblem = modest_platform_get_icon ("qgn_list_gene_fldr_exp",
+ MODEST_ICON_SIZE_SMALL);
+ anorm_pixbuf_open = gdk_pixbuf_copy (anorm_pixbuf);
+ gdk_pixbuf_composite (emblem, anorm_pixbuf_open, 0, 0,
+ MIN (gdk_pixbuf_get_width (emblem),
+ gdk_pixbuf_get_width (anorm_pixbuf_open)),
+ MIN (gdk_pixbuf_get_height (emblem),
+ gdk_pixbuf_get_height (anorm_pixbuf_open)),
+ 0, 0, 1, 1, GDK_INTERP_NEAREST, 255);
+ g_object_unref (emblem);
+ }
+
+ if (!anorm_pixbuf_close) {
+ GdkPixbuf *emblem = modest_platform_get_icon ("qgn_list_gene_fldr_clp",
+ MODEST_ICON_SIZE_SMALL);
+ anorm_pixbuf_close = gdk_pixbuf_copy (anorm_pixbuf);
+ gdk_pixbuf_composite (emblem, anorm_pixbuf_close, 0, 0,
+ MIN (gdk_pixbuf_get_width (emblem),
+ gdk_pixbuf_get_width (anorm_pixbuf_close)),
+ MIN (gdk_pixbuf_get_height (emblem),
+ gdk_pixbuf_get_height (anorm_pixbuf_close)),
+ 0, 0, 1, 1, GDK_INTERP_NEAREST, 255);
+ g_object_unref (emblem);
+ }
+
+
+ pixbuf = g_object_ref (anorm_pixbuf);
+ pixbuf_open = g_object_ref (anorm_pixbuf_open);
+ pixbuf_close = g_object_ref (anorm_pixbuf_close);
+
+ }