aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-07-06 01:49:11 +0800
committerChristian Persch <chpe@src.gnome.org>2003-07-06 01:49:11 +0800
commitef8471f1c1829e864124d0025938ed1c8b8970c7 (patch)
treed949b537b1d0026bede2e4f7ea02ed3f388d865b
parent74a90453c307ef335076ebd89878a715a10889bd (diff)
downloadgsoc2013-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.
-rw-r--r--ChangeLog7
-rw-r--r--src/prefs-dialog.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 44f755e20..664271280 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);
}