[balsa] Use GtkEntry method instead of GtkEditable



commit 8492e4c5134a140e896295598bda00c028e96f74
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Jan 4 11:44:44 2010 -0500

    Use GtkEntry method instead of GtkEditable

 ChangeLog       |    6 ++++++
 libbalsa/misc.c |    7 ++-----
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 843278a..5984dcc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-01-04  Peter Bloomfield
 
+	* libbalsa/misc.c (libbalsa_create_entry): use
+	gtk_entry_set_text instead of gtk_editable_insert_text, to avoid
+	a bogus warning.
+
+2010-01-04  Peter Bloomfield
+
 	* src/save-restore.c (config_global_load): default to no message
 	wrap and prefer text/plain over text/html.
 
diff --git a/libbalsa/misc.c b/libbalsa/misc.c
index 65dcf92..e3fc523 100644
--- a/libbalsa/misc.c
+++ b/libbalsa/misc.c
@@ -1140,11 +1140,8 @@ libbalsa_create_entry(GtkWidget * table, GCallback changed_func,
     gtk_table_attach(GTK_TABLE(table), entry, 1, 2, row, row + 1,
                      GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
 
-    if (initval) {
-        gint zero = 0;
-
-        gtk_editable_insert_text(GTK_EDITABLE(entry), initval, -1, &zero);
-    }
+    if (initval)
+        gtk_entry_set_text(GTK_ENTRY(entry), initval);
 
     gtk_label_set_mnemonic_widget(GTK_LABEL(hotlabel), entry);
 



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