[gnumeric] compilation: fix gtk+ 2.16 dependency.



commit 6484b65027b0835bb43230a13710b296afec5b2c
Author: Morten Welinder <terra gnome org>
Date:   Mon Nov 2 09:26:01 2009 -0500

    compilation: fix gtk+ 2.16 dependency.

 src/dialogs/ChangeLog            |    5 +++++
 src/dialogs/dialog-preferences.c |    7 ++++---
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 9e4eb2f..f658422 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-02  Morten Welinder  <terra gnome org>
+
+	* dialog-preferences.c (wordlist_pref_add): Don't use gtk+ 2.16
+	function.
+
 2009-11-01  Morten Welinder <terra gnome org>
 
 	* Release 1.9.15
diff --git a/src/dialogs/dialog-preferences.c b/src/dialogs/dialog-preferences.c
index 5e8f7b5..15b2900 100644
--- a/src/dialogs/dialog-preferences.c
+++ b/src/dialogs/dialog-preferences.c
@@ -473,11 +473,12 @@ wordlist_pref_remove (GtkButton *button, GOConfNode *node) {
 }
 
 static void                
-wordlist_pref_add (GtkButton *button, GOConfNode *node) {
+wordlist_pref_add (GtkButton *button, GOConfNode *node)
+{
 	GtkEntry *entry = g_object_get_data (G_OBJECT (button), "entry");
+	const gchar *text = gtk_entry_get_text (entry);
 
-	if (gtk_entry_get_text_length > 0) {
-		const gchar *text = gtk_entry_get_text (entry);
+	if (text[0]) {
 		GSList *l, *list = go_conf_get_str_list (node, NULL);
 		l = g_slist_find_custom (list, text, (GCompareFunc)strcmp);
 		if (l == NULL) {



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