diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/prefs-dialog.c | 6 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2003-07-05 Christian Persch <chpe@cvs.gnome.org> + + * src/prefs-dialog.c: (setup_font_menu), (set_homepage_entry): + + gtk_editable_insert_text takes the number of bytes in the string, + not the number of characters. + 2003-07-05 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/ContentHandler.cpp: diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 817127564..691517133 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -481,7 +481,7 @@ setup_font_menu (PrefsDialog *dialog, gtk_editable_delete_text (GTK_EDITABLE(entry), 0, -1); gtk_editable_insert_text (GTK_EDITABLE(entry), - name, g_utf8_strlen (name, -1), + name, strlen (name), &pos); } @@ -1058,13 +1058,13 @@ set_homepage_entry (EphyDialog *dialog, const char *new_location) { GtkWidget *entry; - int pos; + int pos = 0; entry = ephy_dialog_get_control (dialog, HOMEPAGE_ENTRY_PROP); gtk_editable_delete_text (GTK_EDITABLE (entry), 0, -1); gtk_editable_insert_text (GTK_EDITABLE (entry), new_location, - g_utf8_strlen (new_location, -1), + strlen (new_location), &pos); } |