Revision: 1568
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1568&view=rev
Author:   nadvornik
Date:     2009-03-21 18:22:04 +0000 (Sat, 21 Mar 2009)

Log Message:
-----------
do not copy existing layout id to new window

Modified Paths:
--------------
    trunk/src/layout_util.c

Modified: trunk/src/layout_util.c
===================================================================
--- trunk/src/layout_util.c     2009-03-21 17:47:50 UTC (rev 1567)
+++ trunk/src/layout_util.c     2009-03-21 18:22:04 UTC (rev 1568)
@@ -194,13 +194,17 @@
 {
        LayoutWindow *lw = data;
        LayoutWindow *nw;
+       LayoutOptions lop;
        gboolean tmp = options->save_window_positions;
        options->save_window_positions = FALSE; /* let the windowmanager decide 
for the first time */
-       
+
        layout_exit_fullscreen(lw);
 
        layout_sync_options_with_current_state(lw);
-       nw = layout_new(NULL, &lw->options);
+       lop = lw->options; /* we can copy it directly, no strings are modified 
*/
+
+       lop.id = NULL; /* get a new id */
+       nw = layout_new(NULL, &lop);
        layout_sort_set(nw, options->file_sort.method, 
options->file_sort.ascending);
        layout_set_fd(nw, lw->dir_fd);
        options->save_window_positions = tmp;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to