gtk_widget_destroy(vd->popup);
}
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST: vdlist_destroy_cb(widget, data); break;
case DIRVIEW_TREE: vdtree_destroy_cb(widget, data); break;
vd->pf = folder_icons_new();
- switch(type)
+ switch (type)
{
case DIRVIEW_LIST: vd = vdlist_new(vd, dir_fd); break;
case DIRVIEW_TREE: vd = vdtree_new(vd, dir_fd); break;
file_data_unregister_notify_func(vd_notify_cb, vd);
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST: ret = vdlist_set_fd(vd, dir_fd); break;
case DIRVIEW_TREE: ret = vdtree_set_fd(vd, dir_fd); break;
void vd_refresh(ViewDir *vd)
{
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST: vdlist_refresh(vd); break;
case DIRVIEW_TREE: vdtree_refresh(vd); break;
{
const gchar *ret = NULL;
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST: ret = vdlist_row_get_path(vd, row); break;
case DIRVIEW_TREE: ret = vdtree_row_get_path(vd, row); break;
void vd_select_row(ViewDir *vd, FileData *fd)
{
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST: vdlist_select_row(vd, fd); break;
case DIRVIEW_TREE: vdtree_select_row(vd, fd); break;
{
gint ret = FALSE;
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST: ret = vdlist_find_row(vd, fd, iter); break;
case DIRVIEW_TREE: ret = vdtree_find_row(vd, fd, iter, NULL); break;
if (vd_find_row(vd, fd, &iter) < 0) return;
store = gtk_tree_view_get_model(GTK_TREE_VIEW(vd->view));
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST:
gtk_list_store_set(GTK_LIST_STORE(store), &iter, DIR_COLUMN_COLOR, color_set, -1);
FileData *fd = NULL;
if (!success) return;
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST:
{
ViewDir *vd = data;
FileData *dir_fd = NULL;
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST:
{
gint i;
active = (fd != NULL);
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST:
{
ViewDir *vd = data;
gint ret = FALSE;
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST: ret = vdlist_press_key_cb(widget, event, data); break;
case DIRVIEW_TREE: ret = vdtree_press_key_cb(widget, event, data); break;
ViewDir *vd = data;
gint ret = FALSE;
- switch(vd->type)
+ switch (vd->type)
{
case DIRVIEW_LIST: ret = vdlist_press_cb(widget, bevent, data); break;
case DIRVIEW_TREE: ret = vdtree_press_cb(widget, bevent, data); break;
void vf_sort_set(ViewFile *vf, SortType type, gint ascend)
{
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_sort_set(vf, type, ascend); break;
case FILEVIEW_ICON: vficon_sort_set(vf, type, ascend); break;
{
FileData *fd = NULL;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: fd = vflist_index_get_data(vf, row); break;
case FILEVIEW_ICON: fd = vficon_index_get_data(vf, row); break;
{
gint index = -1;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: index = vflist_index_by_path(vf, path); break;
case FILEVIEW_ICON: index = vficon_index_by_path(vf, path); break;
{
guint count = 0;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: count = vflist_count(vf, bytes); break;
case FILEVIEW_ICON: count = vficon_count(vf, bytes); break;
{
GList *list = NULL;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: list = vflist_get_list(vf); break;
case FILEVIEW_ICON: list = vficon_get_list(vf); break;
ViewFile *vf = data;
gint ret = FALSE;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: ret = vflist_press_key_cb(widget, event, data); break;
case FILEVIEW_ICON: ret = vficon_press_key_cb(widget, event, data); break;
ViewFile *vf = data;
gint ret = FALSE;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: ret = vflist_press_cb(widget, bevent, data); break;
case FILEVIEW_ICON: ret = vficon_press_cb(widget, bevent, data); break;
ViewFile *vf = data;
gint ret = FALSE;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: ret = vflist_release_cb(widget, bevent, data); break;
case FILEVIEW_ICON: ret = vficon_release_cb(widget, bevent, data); break;
{
guint count = 0;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: count = vflist_selection_count(vf, bytes); break;
case FILEVIEW_ICON: count = vficon_selection_count(vf, bytes); break;
{
GList *list = NULL;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: list = vflist_selection_get_list(vf); break;
case FILEVIEW_ICON: list = vficon_selection_get_list(vf); break;
{
GList *list = NULL;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: list = vflist_selection_get_list_by_index(vf); break;
case FILEVIEW_ICON: list = vficon_selection_get_list_by_index(vf); break;
void vf_select_all(ViewFile *vf)
{
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_select_all(vf); break;
case FILEVIEW_ICON: vficon_select_all(vf); break;
void vf_select_none(ViewFile *vf)
{
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_select_none(vf); break;
case FILEVIEW_ICON: vficon_select_none(vf); break;
void vf_select_invert(ViewFile *vf)
{
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_select_invert(vf); break;
case FILEVIEW_ICON: vficon_select_invert(vf); break;
void vf_select_by_fd(ViewFile *vf, FileData *fd)
{
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_select_by_fd(vf, fd); break;
case FILEVIEW_ICON: vficon_select_by_fd(vf, fd); break;
void vf_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode)
{
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_mark_to_selection(vf, mark, mode); break;
case FILEVIEW_ICON: vficon_mark_to_selection(vf, mark, mode); break;
void vf_selection_to_mark(ViewFile *vf, gint mark, SelectionToMarkMode mode)
{
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_selection_to_mark(vf, mark, mode); break;
case FILEVIEW_ICON: vficon_selection_to_mark(vf, mark, mode); break;
static void vf_dnd_init(ViewFile *vf)
{
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_dnd_init(vf); break;
case FILEVIEW_ICON: vficon_dnd_init(vf); break;
{
GList *ret = NULL;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: ret = vflist_pop_menu_file_list(vf); break;
case FILEVIEW_ICON: ret = vficon_pop_menu_file_list(vf); break;
{
ViewFile *vf = data;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_pop_menu_view_cb(widget, data); break;
case FILEVIEW_ICON: vficon_pop_menu_view_cb(widget, data); break;
{
ViewFile *vf = data;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_pop_menu_rename_cb(widget, data); break;
case FILEVIEW_ICON: vficon_pop_menu_rename_cb(widget, data); break;
if (!vf->layout) return;
- switch(vf->layout->file_view_type)
+ switch (vf->layout->file_view_type)
{
case FILEVIEW_LIST:
layout_views_set(vf->layout, vf->layout->options.dir_view_type, FILEVIEW_ICON);
{
ViewFile *vf = data;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_pop_menu_refresh_cb(widget, data); break;
case FILEVIEW_ICON: vficon_pop_menu_refresh_cb(widget, data); break;
{
ViewFile *vf = data;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_popup_destroy_cb(widget, data); break;
case FILEVIEW_ICON: vficon_popup_destroy_cb(widget, data); break;
GtkWidget *submenu;
gint active = 0;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST:
vflist_color_set(vf, VFLIST(vf)->click_fd, TRUE);
menu_item_add_check(menu, _("View as _icons"), (vf->type == FILEVIEW_ICON),
G_CALLBACK(vf_pop_menu_toggle_view_type_cb), vf);
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST:
menu_item_add_check(menu, _("Show _thumbnails"), VFLIST(vf)->thumbs_enabled,
{
gint ret = FALSE;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: ret = vflist_refresh(vf); break;
case FILEVIEW_ICON: ret = vficon_refresh(vf); break;
{
gint ret = FALSE;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: ret = vflist_set_fd(vf, dir_fd); break;
case FILEVIEW_ICON: ret = vficon_set_fd(vf, dir_fd); break;
{
ViewFile *vf = data;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_destroy_cb(widget, data); break;
case FILEVIEW_ICON: vficon_destroy_cb(widget, data); break;
g_signal_connect(G_OBJECT(vf->widget), "destroy",
G_CALLBACK(vf_destroy_cb), vf);
- switch(type)
+ switch (type)
{
case FILEVIEW_LIST: vf = vflist_new(vf, dir_fd); break;
case FILEVIEW_ICON: vf = vficon_new(vf, dir_fd); break;
void vf_thumb_set(ViewFile *vf, gint enable)
{
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_thumb_set(vf, enable); break;
case FILEVIEW_ICON: /*vficon_thumb_set(vf, enable);*/ break;
vf->marks_enabled = enable;
- switch(vf->type)
+ switch (vf->type)
{
case FILEVIEW_LIST: vflist_marks_set(vf, enable); break;
case FILEVIEW_ICON: vficon_marks_set(vf, enable); break;