diff src/layout.c @ 327:049d6b00cc14

Rename color profile options.
author zas_
date Sat, 12 Apr 2008 08:05:44 +0000
parents c74af1cbd61a
children 767b53cd9ab7
line wrap: on
line diff
--- a/src/layout.c	Sat Apr 12 07:46:01 2008 +0000
+++ b/src/layout.c	Sat Apr 12 08:05:44 2008 +0000
@@ -411,7 +411,7 @@
 	buf = g_strdup_printf("%s %s", front, "sRGB");
 	g_free(front);
 	item = menu_item_add_radio(menu, NULL,
-				   buf, (options->color_profile_input_type == 0),
+				   buf, (options->color_profile.input_type == 0),
 				   G_CALLBACK(layout_color_menu_input_cb), lw);
 	g_free(buf);
 	g_object_set_data(G_OBJECT(item), COLOR_MENU_KEY, GINT_TO_POINTER(0));
@@ -421,8 +421,8 @@
 		{
 		const gchar *name;
 
-		name = options->color_profile_input_name[i];
-		if (!name) name = filename_from_path(options->color_profile_input_file[i]);
+		name = options->color_profile.input_name[i];
+		if (!name) name = filename_from_path(options->color_profile.input_file[i]);
 
 		front = g_strdup_printf(_("Input _%d:"), i + 1);
 		end = layout_color_name_parse(name);
@@ -435,7 +435,7 @@
 					   G_CALLBACK(layout_color_menu_input_cb), lw);
 		g_free(buf);
 		g_object_set_data(G_OBJECT(item), COLOR_MENU_KEY, GINT_TO_POINTER(i + 1));
-		gtk_widget_set_sensitive(item, active && options->color_profile_input_file[i]);
+		gtk_widget_set_sensitive(item, active && options->color_profile.input_file[i]);
 		}
 
 	menu_item_add_divider(menu);
@@ -452,7 +452,7 @@
 				   _("_Screen profile"), (screen == 1),
 				   G_CALLBACK(layout_color_menu_screen_cb), lw);
 	g_object_set_data(G_OBJECT(item), COLOR_MENU_KEY, GINT_TO_POINTER(1));
-	gtk_widget_set_sensitive(item, active && options->color_profile_screen_file);
+	gtk_widget_set_sensitive(item, active && options->color_profile.screen_file);
 
 	gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, GDK_CURRENT_TIME);
 #endif /* HAVE_LCMS */
@@ -1704,7 +1704,7 @@
 		LayoutWindow *lw = work->data;
 		work = work->next;
 
-		layout_style_set(lw, options->layout_style, options->layout_order);
+		layout_style_set(lw, options->layout.style, options->layout.order);
 		}
 }
 
@@ -1900,10 +1900,10 @@
 
 	/* default layout */
 
-	layout_config_parse(options->layout_style, options->layout_order,
+	layout_config_parse(options->layout.style, options->layout.order,
 			    &lw->dir_location,  &lw->file_location, &lw->image_location);
-	lw->tree_view = options->layout_view_tree;
-	lw->icon_view = options->layout_view_icons;
+	lw->tree_view = options->layout.view_as_tree;
+	lw->icon_view = options->layout.view_as_icons;
 
 	/* divider positions */