Commit a196a2db authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/widgets/gimpviewrendererimagefile.c

2009-03-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewrendererimagefile.c
	(gimp_view_renderer_imagefile_get_icon)
	* plug-ins/print/print.c (query): removed GTK+ version checks 
that
	have become obsolete.


svn path=/trunk/; revision=28111
parent bb86d4ba
2009-03-05 Sven Neumann <sven@gimp.org>
* app/widgets/gimpviewrendererimagefile.c
(gimp_view_renderer_imagefile_get_icon)
* plug-ins/print/print.c (query): removed GTK+ version checks that
have become obsolete.
2009-03-05 Sven Neumann <sven@gimp.org> 2009-03-05 Sven Neumann <sven@gimp.org>
* plug-ins/file-uri/Makefile.am * plug-ins/file-uri/Makefile.am
......
...@@ -163,7 +163,6 @@ gimp_view_renderer_imagefile_get_icon (GimpImagefile *imagefile, ...@@ -163,7 +163,6 @@ gimp_view_renderer_imagefile_get_icon (GimpImagefile *imagefile,
if (! gimp_object_get_name (GIMP_OBJECT (imagefile))) if (! gimp_object_get_name (GIMP_OBJECT (imagefile)))
return NULL; return NULL;
#if GTK_CHECK_VERSION (2, 13, 4)
if (! pixbuf) if (! pixbuf)
{ {
GFile *file; GFile *file;
...@@ -175,9 +174,7 @@ gimp_view_renderer_imagefile_get_icon (GimpImagefile *imagefile, ...@@ -175,9 +174,7 @@ gimp_view_renderer_imagefile_get_icon (GimpImagefile *imagefile,
if (file_info) if (file_info)
{ {
GIcon *icon; GIcon *icon = g_file_info_get_icon (file_info);
icon = g_file_info_get_icon (file_info);
info = gtk_icon_theme_lookup_by_gicon (icon_theme, icon, size, 0); info = gtk_icon_theme_lookup_by_gicon (icon_theme, icon, size, 0);
pixbuf = gtk_icon_info_load_icon (info, NULL); pixbuf = gtk_icon_info_load_icon (info, NULL);
...@@ -187,7 +184,6 @@ gimp_view_renderer_imagefile_get_icon (GimpImagefile *imagefile, ...@@ -187,7 +184,6 @@ gimp_view_renderer_imagefile_get_icon (GimpImagefile *imagefile,
g_object_unref (file); g_object_unref (file);
} }
#endif
if (! pixbuf && imagefile->thumbnail->image_mimetype) if (! pixbuf && imagefile->thumbnail->image_mimetype)
{ {
......
...@@ -127,11 +127,8 @@ query (void) ...@@ -127,11 +127,8 @@ query (void)
print_args, NULL); print_args, NULL);
gimp_plugin_menu_register (PAGE_SETUP_PROC_NAME, "<Image>/File/Send"); gimp_plugin_menu_register (PAGE_SETUP_PROC_NAME, "<Image>/File/Send");
#if GTK_CHECK_VERSION(2,13,0)
gimp_plugin_icon_register (PAGE_SETUP_PROC_NAME, GIMP_ICON_TYPE_STOCK_ID, gimp_plugin_icon_register (PAGE_SETUP_PROC_NAME, GIMP_ICON_TYPE_STOCK_ID,
(const guint8 *) GTK_STOCK_PAGE_SETUP); (const guint8 *) GTK_STOCK_PAGE_SETUP);
#endif
} }
static void static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment