]> www.fi.muni.cz Git - evince.git/blob - viewer/ev-viewer.c
hook up the find bar widget; now we just need a document to find things in
[evince.git] / viewer / ev-viewer.c
1 /*
2  *  Copyright (C) 2004 Marco Pesenti Gritti
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2, or (at your option)
7  *  any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19
20 #include "config.h"
21
22 #include "ev-viewer.h"
23
24 static void ev_viewer_base_init (gpointer g_class);
25
26 GType
27 ev_viewer_get_type (void)
28 {
29         static GType type = 0;
30
31         if (G_UNLIKELY (type == 0))
32         {
33                 static const GTypeInfo our_info =
34                 {
35                         sizeof (EvViewerIface),
36                         ev_viewer_base_init,
37                         NULL,
38                 };
39
40                 type = g_type_register_static (G_TYPE_INTERFACE,
41                                                "EvViewer",
42                                                &our_info, (GTypeFlags)0);
43         }
44
45         return type;
46 }
47
48 static void
49 ev_viewer_base_init (gpointer g_class)
50 {
51 }
52
53 void
54 ev_viewer_load (EvViewer *embed, const char *uri)
55 {
56         EvViewerIface *iface = EV_VIEWER_GET_IFACE (embed);
57         iface->load (embed, uri);
58 }