aboutsummaryrefslogtreecommitdiffstats
path: root/src/prefs-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r--src/prefs-dialog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c
index 763a2e395..817127564 100644
--- a/src/prefs-dialog.c
+++ b/src/prefs-dialog.c
@@ -447,7 +447,6 @@ setup_font_menu (PrefsDialog *dialog,
GList *fonts;
gchar *name;
char key[255];
- int pos;
GtkWidget *entry = GTK_COMBO(combo)->entry;
EphyEmbedSingle *single;
@@ -478,6 +477,8 @@ setup_font_menu (PrefsDialog *dialog,
/* set the default value */
if (name != NULL)
{
+ int pos = 0;
+
gtk_editable_delete_text (GTK_EDITABLE(entry), 0, -1);
gtk_editable_insert_text (GTK_EDITABLE(entry),
name, g_utf8_strlen (name, -1),