Revision: 1508
http://geeqie.svn.sourceforge.net/geeqie/?rev=1508&view=rev
Author: nadvornik
Date: 2009-03-10 22:52:12 +0000 (Tue, 10 Mar 2009)
Log Message:
-----------
fixed saving of file_view_type
Modified Paths:
--------------
trunk/src/layout.c
trunk/src/layout_util.c
trunk/src/typedefs.h
trunk/src/view_dir.c
trunk/src/view_file.c
Modified: trunk/src/layout.c
===================================================================
--- trunk/src/layout.c 2009-03-10 17:58:30 UTC (rev 1507)
+++ trunk/src/layout.c 2009-03-10 22:52:12 UTC (rev 1508)
@@ -841,7 +841,7 @@
static GtkWidget *layout_list_new(LayoutWindow *lw)
{
- lw->vf = vf_new(lw->file_view_type, NULL);
+ lw->vf = vf_new(lw->options.file_view_type, NULL);
vf_set_layout(lw->vf, lw);
vf_set_status_func(lw->vf, layout_list_status_cb, lw);
@@ -849,7 +849,7 @@
vf_marks_set(lw->vf, lw->options.show_marks);
- switch (lw->file_view_type)
+ switch (lw->options.file_view_type)
{
case FILEVIEW_ICON:
break;
@@ -1235,10 +1235,10 @@
{
if (!layout_valid(&lw)) return;
- if (lw->options.dir_view_type == dir_view_type && lw->file_view_type ==
file_view_type) return;
+ if (lw->options.dir_view_type == dir_view_type &&
lw->options.file_view_type == file_view_type) return;
lw->options.dir_view_type = dir_view_type;
- lw->file_view_type = file_view_type;
+ lw->options.file_view_type = file_view_type;
layout_style_set(lw, -1, NULL);
}
@@ -1248,7 +1248,7 @@
if (!layout_valid(&lw)) return FALSE;
*dir_view_type = lw->options.dir_view_type;
- *file_view_type = lw->file_view_type;
+ *file_view_type = lw->options.file_view_type;
return TRUE;
}
Modified: trunk/src/layout_util.c
===================================================================
--- trunk/src/layout_util.c 2009-03-10 17:58:30 UTC (rev 1507)
+++ trunk/src/layout_util.c 2009-03-10 22:52:12 UTC (rev 1508)
@@ -580,7 +580,7 @@
LayoutWindow *lw = data;
layout_exit_fullscreen(lw);
- layout_views_set(lw, (DirViewType)
gtk_radio_action_get_current_value(action), lw->file_view_type);
+ layout_views_set(lw, (DirViewType)
gtk_radio_action_get_current_value(action), lw->options.file_view_type);
}
static void layout_menu_view_in_new_window_cb(GtkAction *action, gpointer data)
@@ -1852,7 +1852,7 @@
radio_action_set_current_value(GTK_RADIO_ACTION(action),
lw->options.dir_view_type);
action = gtk_action_group_get_action(lw->action_group, "ViewIcons");
- gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action),
lw->file_view_type);
+ gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action),
lw->options.file_view_type);
action = gtk_action_group_get_action(lw->action_group, "FloatTools");
gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action),
lw->options.tools_float);
@@ -1885,7 +1885,7 @@
action = gtk_action_group_get_action(lw->action_group, "Thumbnails");
gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action),
lw->options.show_thumbnails);
- g_object_set(action, "sensitive", (lw->file_view_type ==
FILEVIEW_LIST), NULL);
+ g_object_set(action, "sensitive", (lw->options.file_view_type ==
FILEVIEW_LIST), NULL);
}
void layout_util_sync(LayoutWindow *lw)
Modified: trunk/src/typedefs.h
===================================================================
--- trunk/src/typedefs.h 2009-03-10 17:58:30 UTC (rev 1507)
+++ trunk/src/typedefs.h 2009-03-10 22:52:12 UTC (rev 1508)
@@ -599,7 +599,7 @@
LayoutLocation file_location;
ViewFile *vf;
- FileViewType file_view_type;
+// FileViewType file_view_type;
GtkWidget *file_view;
Modified: trunk/src/view_dir.c
===================================================================
--- trunk/src/view_dir.c 2009-03-10 17:58:30 UTC (rev 1507)
+++ trunk/src/view_dir.c 2009-03-10 22:52:12 UTC (rev 1508)
@@ -473,7 +473,7 @@
ViewDir *vd = data;
DirViewType new_type =
GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), VIEW_DIR_AS_SUBMENU_KEY));
- layout_views_set(vd->layout, new_type, vd->layout->file_view_type);
+ layout_views_set(vd->layout, new_type,
vd->layout->options.file_view_type);
}
static void vd_pop_menu_refresh_cb(GtkWidget *widget, gpointer data)
Modified: trunk/src/view_file.c
===================================================================
--- trunk/src/view_file.c 2009-03-10 17:58:30 UTC (rev 1507)
+++ trunk/src/view_file.c 2009-03-10 22:52:12 UTC (rev 1508)
@@ -444,7 +444,7 @@
if (!vf->layout) return;
- switch (vf->layout->file_view_type)
+ switch (vf->type)
{
case FILEVIEW_LIST:
layout_views_set(vf->layout, vf->layout->options.dir_view_type,
FILEVIEW_ICON);
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