Le 18/11/2013 22:11, Colomban Wendling a écrit : > Le 18/11/2013 22:00, Yosef Or Boczko a écrit : >> I think we need to file a bug about this, in the Bugs[1] >> of ArchLinux and maybe also in the bugzilla of GNOME[2]. > > Wait. Could you try the attached patch and see if it fixes the problem? > The code may be wrong and nobody saw it because the icon theme did > provide the looked up icon and so we didn't use out fallback code.
Err, and here's the patch.
diff --git a/src/ui_utils.c b/src/ui_utils.c index f495945..ece0332 100644 --- a/src/ui_utils.c +++ b/src/ui_utils.c @@ -2708,6 +2708,9 @@ GdkPixbuf *ui_get_mime_icon(const gchar *mime_type, GtkIconSize size) { #if GTK_CHECK_VERSION(3, 0, 0) GtkStyleContext *ctx = gtk_style_context_new(); + GtkWidgetPath *path = gtk_widget_path_new(); + gtk_style_context_set_path(ctx, path); + gtk_widget_path_unref(path); icon = gtk_icon_set_render_icon_pixbuf(icon_set, ctx, size); g_object_unref(ctx); #else
_______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel