comparison src/options.c @ 768:ff51413f098d

Use functions to set editors name and command and ensure they are utf8-encoded. Previously, non-utf8 strings from rc file caused some issues.
author zas_
date Fri, 30 May 2008 08:39:52 +0000
parents ae618ebec3e9
children df541dc41707
comparison
equal deleted inserted replaced
767:e73d30e0c896 768:ff51413f098d
162 gchar *path; 162 gchar *path;
163 gint i; 163 gint i;
164 164
165 for (i = 0; i < GQ_EDITOR_SLOTS; i++) 165 for (i = 0; i < GQ_EDITOR_SLOTS; i++)
166 { 166 {
167 options->editor[i].name = NULL; 167 editor_set_name(i, NULL);
168 options->editor[i].command = NULL; 168 editor_set_command(i, NULL);
169 } 169 }
170 170
171 editor_reset_defaults(); 171 editor_reset_defaults();
172 172
173 bookmark_add_default(_("Home"), homedir()); 173 bookmark_add_default(_("Home"), homedir());