From: Vladimir Nadvornik Date: Sun, 20 Mar 2011 10:11:08 +0000 (+0100) Subject: save and load stereo options X-Git-Tag: 1.1~69 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=e82e902ed059b5ed4e12a1c48e816cdf3c514940 save and load stereo options --- diff --git a/src/rcfile.c b/src/rcfile.c index ac938860..ae415b9f 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -442,6 +442,15 @@ static void write_global_attributes(GString *outstr, gint indent) WRITE_NL(); WRITE_BOOL(*options, metadata.keywords_case_sensitive); WRITE_NL(); WRITE_BOOL(*options, metadata.write_orientation); + WRITE_NL(); WRITE_UINT(*options, stereo.mode); + WRITE_NL(); WRITE_UINT(*options, stereo.fsmode); + WRITE_NL(); WRITE_BOOL(*options, stereo.enable_fsmode); + WRITE_NL(); WRITE_UINT(*options, stereo.fixed_w); + WRITE_NL(); WRITE_UINT(*options, stereo.fixed_h); + WRITE_NL(); WRITE_UINT(*options, stereo.fixed_x1); + WRITE_NL(); WRITE_UINT(*options, stereo.fixed_y1); + WRITE_NL(); WRITE_UINT(*options, stereo.fixed_x2); + WRITE_NL(); WRITE_UINT(*options, stereo.fixed_y2); } static void write_color_profile(GString *outstr, gint indent) @@ -703,6 +712,16 @@ static gboolean load_global_params(const gchar **attribute_names, const gchar ** if (READ_BOOL(*options, metadata.keywords_case_sensitive)) continue; if (READ_BOOL(*options, metadata.write_orientation)) continue; + if (READ_UINT(*options, stereo.mode)) continue; + if (READ_UINT(*options, stereo.fsmode)) continue; + if (READ_BOOL(*options, stereo.enable_fsmode)) continue; + if (READ_UINT(*options, stereo.fixed_w)) continue; + if (READ_UINT(*options, stereo.fixed_h)) continue; + if (READ_UINT(*options, stereo.fixed_x1)) continue; + if (READ_UINT(*options, stereo.fixed_y1)) continue; + if (READ_UINT(*options, stereo.fixed_x2)) continue; + if (READ_UINT(*options, stereo.fixed_y2)) continue; + log_printf("unknown attribute %s = %s\n", option, value); }