Mercurial > geeqie.yaz
diff src/layout_util.c @ 730:2d8a8e892b5e
Use a struct to handle editor's properties.
author | zas_ |
---|---|
date | Thu, 22 May 2008 08:49:52 +0000 |
parents | 631d626c1f6b |
children | fa8f7d7396cf |
line wrap: on
line diff
--- a/src/layout_util.c Wed May 21 19:37:18 2008 +0000 +++ b/src/layout_util.c Thu May 22 08:49:52 2008 +0000 @@ -879,13 +879,13 @@ action = gtk_action_group_get_action(lw->action_group, key); g_object_set_data(G_OBJECT(action), "edit_index", GINT_TO_POINTER(i)); - if (options->editor_command[i] && strlen(options->editor_command[i]) > 0) + if (options->editor[i].command && strlen(options->editor[i].command) > 0) { gchar *text; - if (options->editor_name[i] && strlen(options->editor_name[i]) > 0) + if (options->editor[i].name && strlen(options->editor[i].name) > 0) { - text = g_strdup_printf(_("_%d %s..."), i, options->editor_name[i]); + text = g_strdup_printf(_("_%d %s..."), i, options->editor[i].name); } else {