[gnumeric] Include dialog_function_select_erase_search_entry only for newer gtk



commit cd2b32edb04229aae0964cf591313f55558f357f
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Jun 9 10:38:20 2010 -0600

    Include dialog_function_select_erase_search_entry only for newer gtk
    
    2010-06-09 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* dialog-function-select.c
    	(dialog_function_select_erase_search_entry): only include for
    	  newer gtk

 src/dialogs/ChangeLog                |    6 ++++++
 src/dialogs/dialog-function-select.c |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 556c14d..44adaa8 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,11 @@
 2010-06-09 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* dialog-function-select.c 
+	(dialog_function_select_erase_search_entry): only include for 
+	  newer gtk
+	
+2010-06-09 Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* dialog-function-select.c (dialog_function_select_init):
 	  change the dialog title to reflect help mode
 	(dialog_function_select): use a differnt key in help mode to 
diff --git a/src/dialogs/dialog-function-select.c b/src/dialogs/dialog-function-select.c
index a669bb5..06fa0d3 100644
--- a/src/dialogs/dialog-function-select.c
+++ b/src/dialogs/dialog-function-select.c
@@ -191,17 +191,17 @@ dialog_function_select_search (GtkEntry *entry, gpointer data)
 				(gpointer) &specs);
 }
 
+#ifdef HAVE_GTK_ENTRY_SET_ICON_FROM_STOCK
 static void
 dialog_function_select_erase_search_entry (GtkEntry *entry,
-#ifdef HAVE_GTK_ENTRY_SET_ICON_FROM_STOCK
 			      G_GNUC_UNUSED GtkEntryIconPosition icon_pos,
 			      G_GNUC_UNUSED GdkEvent *event,
-#endif
 			      gpointer data)
 {
 	gtk_entry_set_text (entry, "");
 	dialog_function_select_search (entry, data);
 }
+#endif
 
 static void
 dialog_function_select_cat_changed (G_GNUC_UNUSED GtkComboBox *widget,



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