]> www.fi.muni.cz Git - evince.git/blob - cut-n-paste/recent-files/egg-recent-view.c
Fix printing with poppler splash backend. Fixes bug #489774.
[evince.git] / cut-n-paste / recent-files / egg-recent-view.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as
5  * published by the Free Software Foundation; either version 2 of the
6  * License, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
16  *
17  * Authors:
18  *   James Willcox <jwillcox@cs.indiana.edu>
19  */
20
21
22 #ifdef HAVE_CONFIG_H
23 #include <config.h>
24 #endif
25
26 #include <string.h>
27 #include <gtk/gtk.h>
28 #include "egg-recent-view.h"
29
30
31 GtkType
32 egg_recent_view_get_type (void)
33 {
34         static GtkType view_type = 0;
35
36         if (!view_type)
37         {
38                 const GTypeInfo view_info =
39                 {
40                         sizeof (EggRecentViewClass),  /* class_size */
41                         NULL,                       /* base_init */
42                         NULL,                       /* base_finalize */
43                 };
44
45                 view_type = g_type_register_static (G_TYPE_INTERFACE,
46                                                     "EggRecentView",
47                                                     &view_info, 0);
48         }
49
50         return view_type;
51 }
52
53 EggRecentModel *
54 egg_recent_view_get_model (EggRecentView *view)
55 {
56         g_return_val_if_fail (view, NULL);
57
58         return EGG_RECENT_VIEW_GET_CLASS (view)->do_get_model (view);
59 }
60
61 void
62 egg_recent_view_set_model (EggRecentView *view, EggRecentModel *model)
63 {
64         g_return_if_fail (view);
65         g_return_if_fail (model);
66
67         EGG_RECENT_VIEW_GET_CLASS (view)->do_set_model (view, model);
68 }