From a8ccd1aa2ba3bb025627f0d0d46274a67c014505 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 10 Jul 2007 13:14:52 +0000 Subject: Remove gtk version check since we now depend on 2.11. 2007-07-10 Christian Persch * lib/widgets/ephy-location-entry.c: (cursor_on_match_cb), (ephy_location_entry_set_completion): Remove gtk version check since we now depend on 2.11. svn path=/trunk/; revision=7138 --- lib/widgets/ephy-location-entry.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib') diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index e9431e850..1a239aff7 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -53,7 +53,6 @@ #include #include #include -#include #include @@ -976,7 +975,6 @@ sort_func (GtkTreeModel *model, return valueb - valuea; } -#if GTK_CHECK_VERSION (2, 11, 0) static gboolean cursor_on_match_cb (GtkEntryCompletion *completion, GtkTreeModel *model, @@ -997,7 +995,6 @@ cursor_on_match_cb (GtkEntryCompletion *completion, return TRUE; } -#endif /* GTK+ 2.11.0 */ void ephy_location_entry_set_completion (EphyLocationEntry *le, @@ -1069,11 +1066,9 @@ ephy_location_entry_set_completion (EphyLocationEntry *le, gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (completion), extracell, "text", extra_col); -#if GTK_CHECK_VERSION (2, 11, 0) g_object_set (completion, "inline-selection", TRUE, NULL); g_signal_connect (completion, "cursor-on-match", G_CALLBACK (cursor_on_match_cb), le); -#endif gtk_entry_set_completion (GTK_ENTRY (priv->icon_entry->entry), completion); g_object_unref (completion); -- cgit v1.2.3