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);
vf_marks_set(lw->vf, lw->options.show_marks);
- switch (lw->file_view_type)
+ switch (lw->options.file_view_type)
{
case FILEVIEW_ICON:
break;
{
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);
}
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;
}
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)
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);
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)
LayoutLocation file_location;
ViewFile *vf;
- FileViewType file_view_type;
+// FileViewType file_view_type;
GtkWidget *file_view;
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)
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);