[gnumeric] check for gtk_entry_get_text_length



commit d0bf4f17029057da6965d260c2ce6783aac845ad
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Thu Jun 3 15:15:14 2010 -0600

    check for gtk_entry_get_text_length
    
    2010-06-03 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* configure.in: check for gtk_entry_get_text_length
    
    2010-06-03 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* dialog-define-names.c: add #define for gtk 2.12

 ChangeLog                         |    4 ++++
 configure.in                      |    2 +-
 src/dialogs/ChangeLog             |    4 ++++
 src/dialogs/dialog-define-names.c |    6 ++++++
 4 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 65519a2..bb30673 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-06-03 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* configure.in: check for gtk_entry_get_text_length
+
+2010-06-03 Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* src/wbc-gtk-actions.c: make PasteNames action permanent
 	* src/wbc-gtk.c (wbcg_menu_state_update): update PasteNames
 
diff --git a/configure.in b/configure.in
index 3f9c2b6..ffb0bb2 100644
--- a/configure.in
+++ b/configure.in
@@ -689,7 +689,7 @@ LIBS="$GNUMERIC_LIBS $LIBS"
 
 AC_CHECK_FUNCS(g_date_set_time_t g_slice_alloc g_option_context_set_delocalize)
 AC_CHECK_FUNCS(pango_font_map_create_context)
-AC_CHECK_FUNCS(gtk_orientable_set_orientation gtk_adjustment_configure gtk_widget_get_state gtk_widget_is_toplevel gtk_widget_get_window gsf_open_pkg_foreach_rel gtk_dialog_get_content_area gtk_entry_get_buffer gtk_widget_get_can_focus)
+AC_CHECK_FUNCS(gtk_orientable_set_orientation gtk_adjustment_configure gtk_widget_get_state gtk_widget_is_toplevel gtk_widget_get_window gsf_open_pkg_foreach_rel gtk_dialog_get_content_area gtk_entry_get_buffer gtk_widget_get_can_focus gtk_entry_get_text_length)
 AC_CHECK_FUNCS(gsf_infile_msvba_steal_modules)
 
 AC_MSG_CHECKING([for PANGO_WEIGHT_THIN etc.])
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index c0ce737..289a7d2 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,9 @@
 2010-06-03 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* dialog-define-names.c: add #define for gtk 2.12
+
+2010-06-03 Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* dialog-define-names.c (name_guru_paste): delete the selection
 	  and move the cursor into place
 
diff --git a/src/dialogs/dialog-define-names.c b/src/dialogs/dialog-define-names.c
index ed60e3a..bb4bf19 100644
--- a/src/dialogs/dialog-define-names.c
+++ b/src/dialogs/dialog-define-names.c
@@ -52,6 +52,12 @@
 #define DEFINE_NAMES_KEY "define-names-dialog"
 #define PASTE_NAMES_KEY "paste-names-dialog"
 
+#ifndef HAVE_GTK_ENTRY_GET_TEXT_LENGTH
+#define gtk_entry_get_text_length(x) g_utf8_strlen (gtk_entry_get_text (x), -1) 
+#endif
+
+
+
 typedef struct {
 	GladeXML		*gui;
 	GtkWidget		*dialog;



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