diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-07-06 01:49:11 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-07-06 01:49:11 +0800 |
commit | ef8471f1c1829e864124d0025938ed1c8b8970c7 (patch) | |
tree | d949b537b1d0026bede2e4f7ea02ed3f388d865b /src | |
parent | 74a90453c307ef335076ebd89878a715a10889bd (diff) | |
download | gsoc2013-epiphany-ef8471f1c1829e864124d0025938ed1c8b8970c7.tar gsoc2013-epiphany-ef8471f1c1829e864124d0025938ed1c8b8970c7.tar.gz gsoc2013-epiphany-ef8471f1c1829e864124d0025938ed1c8b8970c7.tar.bz2 gsoc2013-epiphany-ef8471f1c1829e864124d0025938ed1c8b8970c7.tar.lz gsoc2013-epiphany-ef8471f1c1829e864124d0025938ed1c8b8970c7.tar.xz gsoc2013-epiphany-ef8471f1c1829e864124d0025938ed1c8b8970c7.tar.zst gsoc2013-epiphany-ef8471f1c1829e864124d0025938ed1c8b8970c7.zip |
gtk_editable_insert_text takes the number of bytes in the string, not the
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/prefs-dialog.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |