diff src/menu.c @ 318:b16b9b8979e5

Add a new struct ConfOptions to handle options. Changes were made among the code to use only one global var named "options" of type ConfOptions *. Initialization takes place in new init_options().
author zas_
date Fri, 11 Apr 2008 22:14:36 +0000
parents e213fb025621
children c4080362d619
line wrap: on
line diff
--- a/src/menu.c	Fri Apr 11 20:35:37 2008 +0000
+++ b/src/menu.c	Fri Apr 11 22:14:36 2008 +0000
@@ -67,11 +67,11 @@
 	gint i;
 	for (i = 0; i < GQ_EDITOR_SLOTS; i++)
 		{
-		if (editor_command[i] && strlen(editor_command[i]) > 0)
+		if (options->editor_command[i] && strlen(options->editor_command[i]) > 0)
 			{
 			gchar *text;
-			if (editor_name[i] && strlen(editor_name[i]) > 0)
-				text = g_strdup_printf(_("in %s..."), editor_name[i]);
+			if (options->editor_name[i] && strlen(options->editor_name[i]) > 0)
+				text = g_strdup_printf(_("in %s..."), options->editor_name[i]);
 			else
 				text = g_strdup(_("in (unknown)..."));
 			if (accel_grp)