Ejemplo n.º 1
0
void mimeview_destroy(MimeView *mimeview)
{
	textview_destroy(mimeview->textview);
	imageview_destroy(mimeview->imageview);
	g_object_unref(mimeview->popupfactory);
	g_free(mimeview->drag_file);
	g_free(mimeview);
}
Ejemplo n.º 2
0
void
browser_destroy (void)
{
    file_list_free (BROWSER_FILE_LIST);

    if (conf.save_win_state)
    {
	conf.window_width = browser->window->allocation.width;
	conf.window_height = browser->window->allocation.height;
	conf.dirtree_width = DIRVIEW_WIDTH;
	conf.dirtree_height = DIRVIEW_HEIGHT;
    }

    if (conf.startup_dir_mode == 1)
    {
	if (conf.startup_dir != NULL)
	{
	    g_free (conf.startup_dir);
	    conf.startup_dir = g_strdup (browser->current_path->str);
	}
    }
    if (browser->current_path)
	g_string_free (browser->current_path, TRUE);

    if (browser->last_path)
	g_string_free (browser->last_path, TRUE);

#ifdef ENABLE_MOVIE
    videoplay_destroy ();
#endif

    imageview_destroy ();
    thumbview_destroy ();
    dirview_destroy ();

    g_free (browser);

    gtk_main_quit ();
}