Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 18 Nov 2013 21:22:57 UTC Commit: 1dfc1077c7f52070ceb65fe97ea2a8da3cc5c93e https://github.com/geany/geany/commit/1dfc1077c7f52070ceb65fe97ea2a8da3cc5c9...
Log Message: ----------- Fix crash in fallback mime icon loading code under GTK3
Modified Paths: -------------- src/ui_utils.c
Modified: src/ui_utils.c 3 files changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -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
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).