void fm_tab_page_reload(FmTabPage* page) { g_return_if_fail(page); FmFolder* folder = fm_folder_view_get_folder(page->folder_view); if(folder) fm_folder_reload(folder); }
FmFolder* fm_folder_new_internal(FmPath* path, GFile* gf) { GError* err = NULL; FmFolder* folder = (FmFolder*)g_object_new(FM_TYPE_FOLDER, NULL); folder->dir_path = fm_path_ref(path); folder->gf = (GFile*)g_object_ref(gf); folder->mon = fm_monitor_directory(gf, &err); if(folder->mon) g_signal_connect(folder->mon, "changed", G_CALLBACK(on_folder_changed), folder ); else g_error_free(err); fm_folder_reload(folder); return folder; }
void fm_tab_page_reload(FmTabPage* page) { FmFolder* folder = fm_folder_view_get_folder(FM_FOLDER_VIEW(page->folder_view)); if(folder) fm_folder_reload(folder); }