Added MainWin* parameter to folderview_create().
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 1 Dec 2018 09:06:51 +0000 (10:06 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 1 Dec 2018 09:06:51 +0000 (10:06 +0100)
src/folderview.c
src/folderview.h
src/mainwindow.c

index 1f8ee97..485ce03 100644 (file)
@@ -586,7 +586,7 @@ void folderview_set_column_order(FolderView *folderview)
        folderview_select(folderview,item);
 }
 
-FolderView *folderview_create(void)
+FolderView *folderview_create(MainWindow *mainwin)
 {
        FolderView *folderview;
        GtkWidget *scrolledwin;
index 68bb2e8..f97e2d0 100644 (file)
@@ -104,7 +104,7 @@ struct _FolderViewPopup
 };
 
 void folderview_initialize             (void);
-FolderView *folderview_create          (void);
+FolderView *folderview_create          (MainWindow *mainwin);
 void folderview_init                   (FolderView     *folderview);
 
 void folderview_set                    (FolderView     *folderview);
index fe568ba..e12732e 100644 (file)
@@ -1994,7 +1994,7 @@ MainWindow *main_window_create()
        g_signal_connect (G_OBJECT(offline_switch), "clicked", G_CALLBACK(online_switch_clicked), mainwin);
 #endif
        /* create views */
-       mainwin->folderview  = folderview  = folderview_create();
+       mainwin->folderview  = folderview  = folderview_create(mainwin);
        mainwin->summaryview = summaryview = summary_create(mainwin);
        mainwin->messageview = messageview = messageview_create(mainwin);