#if !GTK_CHECK_VERSION(2, 14, 0)
-#if GLIB_CHECK_VERSION(2, 16, 0)
+#if HAVE_GIO
/* GTK+/ GdkPixbuf internal helper function
Copyright (C) 2008 Matthias Clasen <mclasen@redhat.com>
{
static GtkTooltips* tooltips = NULL;
if (G_UNLIKELY (!tooltips))
- tooltips = gtk_tooltips_new();
+ tooltips = gtk_tooltips_new ();
gtk_tool_item_set_tooltip (toolitem, tooltips, text, NULL);
}
#ifndef __COMPAT_H__
#define __COMPAT_H__
+#if HAVE_CONFIG_H
+ #include <config.h>
+#endif
+
#include <glib.h>
-#if GLIB_CHECK_VERSION(2, 16, 0)
+#if HAVE_GIO
#include <gio/gio.h>
#endif
#include <webkit/webkit.h>
#if !GTK_CHECK_VERSION(2, 14, 0)
-#if GLIB_CHECK_VERSION(2,16, 0)
+#if HAVE_GIO
GdkPixbuf*
gdk_pixbuf_new_from_stream (GInputStream* stream,
GdkCursorType cursor_type;
gboolean custom_cursor;
GtkImageType storage_type;
- #if GLIB_CHECK_VERSION (2, 16, 0)
+ #if HAVE_GIO
GIcon *gicon;
#endif
gchar *icon_name;
NULL,
GTK_PARAM_WRITABLE));
- #if GLIB_CHECK_VERSION (2, 16, 0)
+ #if HAVE_GIO
g_object_class_install_property (gobject_class,
PROP_GICON_PRIMARY,
g_param_spec_object ("gicon-primary",
g_value_get_string (value));
break;
- #if GLIB_CHECK_VERSION (2, 16, 0)
+ #if HAVE_GIO
case PROP_GICON_PRIMARY:
gtk_icon_entry_set_icon_from_gicon (entry,
GTK_ICON_ENTRY_PRIMARY,
GTK_ICON_ENTRY_SECONDARY));
break;
- #if GLIB_CHECK_VERSION (2, 16, 0)
+ #if HAVE_GIO
case PROP_GICON_PRIMARY:
g_value_set_object (value,
gtk_icon_entry_get_gicon (entry,
gtk_icon_entry_set_icon_from_icon_name (entry, i, priv->icons[i].icon_name);
}
- #if GLIB_CHECK_VERSION (2, 16, 0)
+ #if HAVE_GIO
else if (priv->icons[i].storage_type == _GTK_IMAGE_GICON)
{
g_object_unref (priv->icons[i].pixbuf);
* appropriately.
*/
-#if GLIB_CHECK_VERSION (2, 16, 0)
+#if HAVE_GIO
void
gtk_icon_entry_set_icon_from_gicon (const GtkIconEntry *entry,
GtkIconEntryPosition icon_pos,
*/
-#if GLIB_CHECK_VERSION (2, 16, 0)
+#if HAVE_GIO
GIcon *
gtk_icon_entry_get_gicon (const GtkIconEntry *entry,
GtkIconEntryPosition icon_pos)
#ifndef __GTK_ICON_ENTRY_H__
#define __GTK_ICON_ENTRY_H__
+#if HAVE_CONFIG_H
+ #include <config.h>
+#endif
#include <glib.h>
-#if GLIB_CHECK_VERSION (2, 16, 0)
+#if HAVE_GIO
#include <gio/gio.h>
#endif
#include <gtk/gtk.h>
GtkIconEntryPosition icon_pos,
const gchar *icon_name);
-#if GLIB_CHECK_VERSION (2, 16, 0)
+#if HAVE_GIO
void gtk_icon_entry_set_icon_from_gicon (const GtkIconEntry *entry,
GtkIconEntryPosition icon_pos,
GIcon *icon);
#endif
GdkPixbuf* gtk_icon_entry_get_pixbuf (const GtkIconEntry *entry,
GtkIconEntryPosition icon_pos);
-#if GLIB_CHECK_VERSION (2, 16, 0)
+#if HAVE_GIO
GIcon* gtk_icon_entry_get_gicon (const GtkIconEntry *entry,
GtkIconEntryPosition icon_pos);
#endif