Beispiel #1
0
/**
 * fm_finalize
 *
 * Frees libfm data.
 *
 * This API should be called exactly that many times the fm_init() was
 * called before.
 *
 * Since: 0.1.0
 */
void fm_finalize(void)
{
    if (!g_atomic_int_dec_and_test(&init_done))
        return;

#ifdef HAVE_ACTIONS
	/* generated by vala */
    _fm_file_actions_finalize();
#endif
    _fm_folder_config_finalize();
    _fm_templates_finalize();
    _fm_terminal_finalize();
    _fm_thumbnail_loader_finalize();
    _fm_thumbnailer_finalize(); /* need to be before fm_mime_type_finalize() */
    _fm_archiver_finalize();
    _fm_folder_finalize();
    _fm_file_info_finalize();
    _fm_mime_type_finalize();
    _fm_monitor_finalize();
    _fm_icon_finalize();
    _fm_path_finalize();
    _fm_file_finalize();

#ifdef USE_UDISKS
    _fm_udisks_finalize();
#endif

    /* fm_config_save(fm_config, _fm_config_get_name(fm_config)); */
    g_object_unref(fm_config);
    fm_config = NULL;
}
Beispiel #2
0
void fm_finalize()
{
    _fm_icon_finalize();
    _fm_monitor_finalize();
    _fm_archiver_finalize();

	/* generated by vala */
    _fm_file_actions_finalize();

#ifdef USE_UDISKS
    _fm_udisks_finalize();
#endif

    fm_config_save(fm_config, NULL);
    g_object_unref(fm_config);
    fm_config = NULL;
}