comparison 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
comparison
equal deleted inserted replaced
729:9a6a7e95467a 730:2d8a8e892b5e
877 key = g_strdup_printf("Editor%d", i); 877 key = g_strdup_printf("Editor%d", i);
878 878
879 action = gtk_action_group_get_action(lw->action_group, key); 879 action = gtk_action_group_get_action(lw->action_group, key);
880 g_object_set_data(G_OBJECT(action), "edit_index", GINT_TO_POINTER(i)); 880 g_object_set_data(G_OBJECT(action), "edit_index", GINT_TO_POINTER(i));
881 881
882 if (options->editor_command[i] && strlen(options->editor_command[i]) > 0) 882 if (options->editor[i].command && strlen(options->editor[i].command) > 0)
883 { 883 {
884 gchar *text; 884 gchar *text;
885 885
886 if (options->editor_name[i] && strlen(options->editor_name[i]) > 0) 886 if (options->editor[i].name && strlen(options->editor[i].name) > 0)
887 { 887 {
888 text = g_strdup_printf(_("_%d %s..."), i, options->editor_name[i]); 888 text = g_strdup_printf(_("_%d %s..."), i, options->editor[i].name);
889 } 889 }
890 else 890 else
891 { 891 {
892 text = g_strdup_printf(_("_%d (unknown)..."), i); 892 text = g_strdup_printf(_("_%d (unknown)..."), i);
893 } 893 }