From 2bc994f1a1d73a102aea6e77ac1ea60aa284020a Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 18 Jul 2011 11:55:23 +0000 Subject: [PATCH] Compilation fix for Gtk+ < 2.12 --- src/mime.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mime.c b/src/mime.c index 33a37a1..42bb0db 100644 --- a/src/mime.c +++ b/src/mime.c @@ -429,7 +429,10 @@ static GdkPixbuf * _mime_icons_size(Mime * mime, char const * type, static char buf[256] = "gnome-mime-"; char * p; GtkIconLookupFlags flags = GTK_ICON_LOOKUP_USE_BUILTIN - | GTK_ICON_LOOKUP_GENERIC_FALLBACK; +#if GTK_CHECK_VERSION(2, 12, 0) + | GTK_ICON_LOOKUP_GENERIC_FALLBACK +#endif + ; strncpy(&buf[11], type, sizeof(buf) - 11); buf[sizeof(buf) - 1] = '\0';