From be20f89884da134b09a96f459bd47e4badb0af39 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 30 Dec 2011 23:22:18 +0000 Subject: only use libsexy entry widget prior to gtk 2.16 svn path=/trunk/netsurf/; revision=13356 --- gtk/compat.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gtk/compat.h') diff --git a/gtk/compat.h b/gtk/compat.h index 3b0dd497e..ee95c6dd5 100644 --- a/gtk/compat.h +++ b/gtk/compat.h @@ -37,4 +37,17 @@ GtkWidget *nsgtk_combo_box_text_new(void); void nsgtk_combo_box_text_append_text(GtkWidget *combo_box, const gchar *text); gchar *nsgtk_combo_box_text_get_active_text(GtkWidget *combo_box); +GtkWidget *nsgtk_entry_new(void); +void nsgtk_entry_set_icon_from_pixbuf(GtkWidget *entry, GtkEntryIconPosition icon_pos, GdkPixbuf *pixbuf); +void nsgtk_entry_set_icon_from_stock(GtkWidget *entry, GtkEntryIconPosition icon_pos, const gchar *stock_id); + +#if !GTK_CHECK_VERSION(2,16,0) +#include "gtk/sexy_icon_entry.h" + +typedef enum { + GTK_ENTRY_ICON_PRIMARY = SEXY_ICON_ENTRY_PRIMARY, + GTK_ENTRY_ICON_SECONDARY = SEXY_ICON_ENTRY_SECONDARY +} GtkEntryIconPosition; +#endif + #endif /* NETSURF_GTK_COMPAT_H */ -- cgit v1.2.3