[tasks] Remove gtk_entry_set_icon_from_icon_name check



commit ba6930b814f841c488b81324096dc79e6dcce200
Author: Ross Burton <ross linux intel com>
Date:   Wed Apr 27 19:38:34 2011 +0100

    Remove gtk_entry_set_icon_from_icon_name check

 configure.ac                        |    4 ----
 libkoto/koto-field-editor-factory.c |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3fdd364..83ce293 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,10 +59,6 @@ CFLAGS=$GTK_CFLAGS
 AC_CHECK_DECLS([GDK_WINDOW_TYPE_HINT_COMBO, gtk_style_lookup_color],
                [], [], [#include <gtk/gtk.h>])
 
-# This was introduced in GTK+ 2.16
-AC_CHECK_DECLS([gtk_entry_set_icon_from_icon_name],
-               [], [], [#include <gtk/gtk.h>])
-
 # This was introduced in newer libecal
 CFLAGS=$ECAL_CFLAGS
 AC_CHECK_TYPES(ECalComponentId, [], [], [#include <libecal/e-cal.h>])
diff --git a/libkoto/koto-field-editor-factory.c b/libkoto/koto-field-editor-factory.c
index 1e2d3cd..39da471 100644
--- a/libkoto/koto-field-editor-factory.c
+++ b/libkoto/koto-field-editor-factory.c
@@ -132,7 +132,6 @@ entry_set (GtkWidget *widget, icalproperty *prop)
  * URL entries.
  */
 
-#if HAVE_DECL_GTK_ENTRY_SET_ICON_FROM_ICON_NAME
 static void
 url_entry_icon_clicked (GtkEntry *entry,
 		        GtkEntryIconPosition icon_pos,
@@ -158,7 +157,6 @@ on_url_entry_changed (GtkEntry *entry)
                                   GTK_ENTRY_ICON_SECONDARY,
                                   text != NULL && text[0] != '\0');
 }
-#endif
 
 static GtkWidget *
 url_entry_new (void)
@@ -172,7 +170,6 @@ url_entry_new (void)
   id = g_signal_connect (entry, "changed", G_CALLBACK (on_entry_changed), NULL);
   g_object_set_data (G_OBJECT (entry), SIGNAL_DATA, GINT_TO_POINTER (id));
 
-#if HAVE_DECL_GTK_ENTRY_SET_ICON_FROM_ICON_NAME
   gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry),
                                      GTK_ENTRY_ICON_SECONDARY, "stock_internet");
   gtk_entry_set_icon_activatable (GTK_ENTRY (entry),
@@ -181,7 +178,6 @@ url_entry_new (void)
   g_signal_connect (entry, "icon-release", G_CALLBACK (url_entry_icon_clicked), NULL);
   /* This callback enables or disables the icon highlighting */
   g_signal_connect (entry, "changed", G_CALLBACK (on_url_entry_changed), NULL);
-#endif
 
   return entry;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]