1 /* this file is part of evince, a gnome document viewer
3 * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org>
5 * Evince is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * Evince is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 G_DEFINE_TYPE (EvPage, ev_page, G_TYPE_OBJECT)
27 ev_page_init (EvPage *page)
32 ev_page_finalize (GObject *object)
34 EvPage *page = EV_PAGE (object);
36 if (page->backend_destroy_func) {
37 page->backend_destroy_func (page->backend_page);
38 page->backend_destroy_func = NULL;
40 page->backend_page = NULL;
42 (* G_OBJECT_CLASS (ev_page_parent_class)->finalize) (object);
46 ev_page_class_init (EvPageClass *klass)
48 GObjectClass *object_class = G_OBJECT_CLASS (klass);
50 object_class->finalize = ev_page_finalize;
54 ev_page_new (gint index)
58 page = EV_PAGE (g_object_new (EV_TYPE_PAGE, NULL));