Remember layout of Search and Dupe windows
[geeqie.git] / src / layout.c
index 87b82cc..3be2130 100644 (file)
@@ -2684,6 +2684,16 @@ void layout_write_attributes(LayoutOptions *layout, GString *outstr, gint indent
        WRITE_NL(); WRITE_INT(*layout, log_window.y);
        WRITE_NL(); WRITE_INT(*layout, log_window.w);
        WRITE_NL(); WRITE_INT(*layout, log_window.h);
+
+       WRITE_NL(); WRITE_INT(*layout, search_window.x);
+       WRITE_NL(); WRITE_INT(*layout, search_window.y);
+       WRITE_NL(); WRITE_INT(*layout, search_window.w);
+       WRITE_NL(); WRITE_INT(*layout, search_window.h);
+
+       WRITE_NL(); WRITE_INT(*layout, dupe_window.x);
+       WRITE_NL(); WRITE_INT(*layout, dupe_window.y);
+       WRITE_NL(); WRITE_INT(*layout, dupe_window.w);
+       WRITE_NL(); WRITE_INT(*layout, dupe_window.h);
        WRITE_SEPARATOR();
 
        WRITE_NL(); WRITE_BOOL(*layout, animate);
@@ -2778,6 +2788,16 @@ void layout_load_attributes(LayoutOptions *layout, const gchar **attribute_names
                if (READ_INT(*layout, log_window.w)) continue;
                if (READ_INT(*layout, log_window.h)) continue;
 
+               if (READ_INT(*layout, search_window.x)) continue;
+               if (READ_INT(*layout, search_window.y)) continue;
+               if (READ_INT(*layout, search_window.w)) continue;
+               if (READ_INT(*layout, search_window.h)) continue;
+
+               if (READ_INT(*layout, dupe_window.x)) continue;
+               if (READ_INT(*layout, dupe_window.y)) continue;
+               if (READ_INT(*layout, dupe_window.w)) continue;
+               if (READ_INT(*layout, dupe_window.h)) continue;
+
                if (READ_BOOL(*layout, animate)) continue;
 
                log_printf("unknown attribute %s = %s\n", option, value);