Add missing space between switch and first parenthesis.
authorLaurent Monin <geeqie@norz.org>
Sat, 28 Feb 2009 20:52:51 +0000 (20:52 +0000)
committerLaurent Monin <geeqie@norz.org>
Sat, 28 Feb 2009 20:52:51 +0000 (20:52 +0000)
12 files changed:
src/cache_maint.c
src/collect-io.c
src/collect.c
src/dupe.c
src/img-view.c
src/layout_image.c
src/metadata.c
src/preferences.c
src/print.c
src/search.c
src/view_dir.c
src/view_file.c

index 1717cf7..eb43888 100644 (file)
@@ -623,7 +623,7 @@ void cache_notify_cb(FileData *fd, NotifyType type, gpointer data)
 {
        if (type != NOTIFY_TYPE_CHANGE || !fd->change) return;
        
-       switch(fd->change->type)
+       switch (fd->change->type)
                {
                case FILEDATA_CHANGE_MOVE:
                case FILEDATA_CHANGE_RENAME:
index 74279ab..4db0968 100644 (file)
@@ -937,7 +937,7 @@ void collect_manager_notify_cb(FileData *fd, NotifyType type, gpointer data)
 
        if (type != NOTIFY_TYPE_CHANGE || !fd->change) return;
        
-       switch(fd->change->type)
+       switch (fd->change->type)
                {
                case FILEDATA_CHANGE_MOVE:
                        collect_manager_moved(fd);
index 3c13c09..8b47552 100644 (file)
@@ -132,7 +132,7 @@ static gint collection_list_sort_cb(gconstpointer a, gconstpointer b)
        const CollectInfo *cia = a;
        const CollectInfo *cib = b;
 
-       switch(collection_list_sort_method)
+       switch (collection_list_sort_method)
                {
                case SORT_NAME:
                        break;
@@ -763,7 +763,7 @@ static void collection_notify_cb(FileData *fd, NotifyType type, gpointer data)
 
        if (type != NOTIFY_TYPE_CHANGE || !fd->change) return;
        
-       switch(fd->change->type)
+       switch (fd->change->type)
                {
                case FILEDATA_CHANGE_MOVE:
                case FILEDATA_CHANGE_RENAME:
index ac3518c..9252a0e 100644 (file)
@@ -3557,7 +3557,7 @@ static void dupe_notify_cb(FileData *fd, NotifyType type, gpointer data)
 
        if (type != NOTIFY_TYPE_CHANGE || !fd->change) return;
        
-       switch(fd->change->type)
+       switch (fd->change->type)
                {
                case FILEDATA_CHANGE_MOVE:
                case FILEDATA_CHANGE_RENAME:
index b30ac23..5769741 100644 (file)
@@ -1679,7 +1679,7 @@ static void view_window_notify_cb(FileData *fd, NotifyType type, gpointer data)
 
        if (type != NOTIFY_TYPE_CHANGE || !fd->change) return;
        
-       switch(fd->change->type)
+       switch (fd->change->type)
                {
                case FILEDATA_CHANGE_MOVE:
                case FILEDATA_CHANGE_RENAME:
index c237c3e..703a005 100644 (file)
@@ -1790,7 +1790,7 @@ void layout_image_notify_cb(FileData *fd, NotifyType type, gpointer data)
 
        if (type != NOTIFY_TYPE_CHANGE || !fd->change) return;
        
-       switch(fd->change->type)
+       switch (fd->change->type)
                {
                case FILEDATA_CHANGE_MOVE:
                case FILEDATA_CHANGE_RENAME:
index 2be8cb8..730fb93 100644 (file)
@@ -319,7 +319,7 @@ static gint metadata_file_read(gchar *path, GList **keywords, gchar **comment)
                        continue;
                        }
                
-               switch(key)
+               switch (key)
                        {
                        case MK_NONE:
                                break;
index b532b87..51d11e9 100644 (file)
@@ -783,7 +783,7 @@ static void filter_set_func(GtkTreeViewColumn *tree_column, GtkCellRenderer *cel
 
        gtk_tree_model_get(tree_model, iter, 0, &fe, -1);
 
-       switch(GPOINTER_TO_INT(data))
+       switch (GPOINTER_TO_INT(data))
                {
                case FE_ENABLE:
                        g_object_set(GTK_CELL_RENDERER(cell),
index 87490dc..393e6a0 100644 (file)
@@ -2679,7 +2679,7 @@ static void print_window_print_start(PrintWindow *pw)
 {
        RenderFormat format;
 
-       switch(pw->output)
+       switch (pw->output)
                {
                case PRINT_OUTPUT_RGB_FILE:
                        format = RENDER_FORMAT_RGB;
index 9bf898c..05db77e 100644 (file)
@@ -2937,7 +2937,7 @@ static void search_notify_cb(FileData *fd, NotifyType type, gpointer data)
 
        if (type != NOTIFY_TYPE_CHANGE || !fd->change) return;
        
-       switch(fd->change->type)
+       switch (fd->change->type)
                {
                case FILEDATA_CHANGE_MOVE:
                case FILEDATA_CHANGE_RENAME:
index b96283f..5e0712d 100644 (file)
@@ -46,7 +46,7 @@ static void vd_destroy_cb(GtkWidget *widget, gpointer data)
                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;
@@ -87,7 +87,7 @@ ViewDir *vd_new(DirViewType type, FileData *dir_fd)
 
        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;
@@ -135,7 +135,7 @@ gint vd_set_fd(ViewDir *vd, FileData *dir_fd)
 
        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;
@@ -148,7 +148,7 @@ gint vd_set_fd(ViewDir *vd, FileData *dir_fd)
 
 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;
@@ -159,7 +159,7 @@ const gchar *vd_row_get_path(ViewDir *vd, gint row)
 {
        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;
@@ -170,7 +170,7 @@ const gchar *vd_row_get_path(ViewDir *vd, gint row)
 
 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;
@@ -181,7 +181,7 @@ gint vd_find_row(ViewDir *vd, FileData *fd, GtkTreeIter *iter)
 {
        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;
@@ -260,7 +260,7 @@ void vd_color_set(ViewDir *vd, FileData *fd, gint color_set)
        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);
@@ -508,7 +508,7 @@ static void vd_pop_menu_new_rename_cb(gboolean success, const gchar *new_path, g
        FileData *fd = NULL;
        if (!success) return;
 
-       switch(vd->type)
+       switch (vd->type)
                {
                case DIRVIEW_LIST:
                        {
@@ -532,7 +532,7 @@ static void vd_pop_menu_new_cb(GtkWidget *widget, gpointer data)
        ViewDir *vd = data;
        FileData *dir_fd = NULL;
 
-       switch(vd->type)
+       switch (vd->type)
                {
                case DIRVIEW_LIST:
                        {
@@ -569,7 +569,7 @@ GtkWidget *vd_pop_menu(ViewDir *vd, FileData *fd)
        gint i;
 
        active = (fd != NULL);
-       switch(vd->type)
+       switch (vd->type)
                {
                case DIRVIEW_LIST:
                        {
@@ -1003,7 +1003,7 @@ gint vd_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data)
        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;
@@ -1017,7 +1017,7 @@ gint vd_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data)
        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;
index b59b586..fe1ced1 100644 (file)
@@ -40,7 +40,7 @@ void vf_send_update(ViewFile *vf)
 
 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;
@@ -57,7 +57,7 @@ FileData *vf_index_get_data(ViewFile *vf, gint row)
 {
        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;
@@ -70,7 +70,7 @@ gint vf_index_by_path(ViewFile *vf, const gchar *path)
 {
        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;
@@ -83,7 +83,7 @@ guint vf_count(ViewFile *vf, gint64 *bytes)
 {
        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;
@@ -96,7 +96,7 @@ GList *vf_get_list(ViewFile *vf)
 {
        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;
@@ -117,7 +117,7 @@ static gint vf_press_key_cb(GtkWidget *widget, GdkEventKey *event, gpointer data
        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;
@@ -137,7 +137,7 @@ static gint vf_press_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer data
        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;
@@ -151,7 +151,7 @@ static gint vf_release_cb(GtkWidget *widget, GdkEventButton *bevent, gpointer da
        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;
@@ -171,7 +171,7 @@ guint vf_selection_count(ViewFile *vf, gint64 *bytes)
 {
        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;
@@ -184,7 +184,7 @@ GList *vf_selection_get_list(ViewFile *vf)
 {
        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;
@@ -197,7 +197,7 @@ GList *vf_selection_get_list_by_index(ViewFile *vf)
 {
        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;
@@ -208,7 +208,7 @@ GList *vf_selection_get_list_by_index(ViewFile *vf)
 
 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;
@@ -217,7 +217,7 @@ void vf_select_all(ViewFile *vf)
 
 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;
@@ -226,7 +226,7 @@ void vf_select_none(ViewFile *vf)
 
 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;
@@ -235,7 +235,7 @@ void vf_select_invert(ViewFile *vf)
 
 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;
@@ -244,7 +244,7 @@ void vf_select_by_fd(ViewFile *vf, FileData *fd)
 
 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;
@@ -253,7 +253,7 @@ void vf_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode)
 
 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;
@@ -269,7 +269,7 @@ void vf_selection_to_mark(ViewFile *vf, gint mark, SelectionToMarkMode mode)
 
 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;
@@ -286,7 +286,7 @@ GList *vf_pop_menu_file_list(ViewFile *vf)
 {
        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;
@@ -314,7 +314,7 @@ static void vf_pop_menu_view_cb(GtkWidget *widget, gpointer data)
 {
        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;
@@ -339,7 +339,7 @@ static void vf_pop_menu_rename_cb(GtkWidget *widget, gpointer data)
 {
        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;
@@ -444,7 +444,7 @@ static void vf_pop_menu_toggle_view_type_cb(GtkWidget *widget, gpointer data)
        
        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);
@@ -459,7 +459,7 @@ static void vf_pop_menu_refresh_cb(GtkWidget *widget, gpointer data)
 {
        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;
@@ -470,7 +470,7 @@ static void vf_popup_destroy_cb(GtkWidget *widget, gpointer data)
 {
        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;
@@ -484,7 +484,7 @@ GtkWidget *vf_pop_menu(ViewFile *vf)
        GtkWidget *submenu;
        gint active = 0;
 
-       switch(vf->type)
+       switch (vf->type)
        {
        case FILEVIEW_LIST:
                vflist_color_set(vf, VFLIST(vf)->click_fd, TRUE);
@@ -580,7 +580,7 @@ GtkWidget *vf_pop_menu(ViewFile *vf)
        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,
@@ -601,7 +601,7 @@ gint vf_refresh(ViewFile *vf)
 {
        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;
@@ -614,7 +614,7 @@ gint vf_set_fd(ViewFile *vf, FileData *dir_fd)
 {
        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;
@@ -627,7 +627,7 @@ static void vf_destroy_cb(GtkWidget *widget, gpointer data)
 {
        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;
@@ -711,7 +711,7 @@ ViewFile *vf_new(FileViewType type, FileData *dir_fd)
        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;
@@ -748,7 +748,7 @@ void vf_set_thumb_status_func(ViewFile *vf, void (*func)(ViewFile *vf, gdouble v
 
 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;
@@ -761,7 +761,7 @@ void vf_marks_set(ViewFile *vf, gint enable)
 
        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;