]> www.fi.muni.cz Git - evince.git/blob - libmisc/ev-page-action.h
Move stock icons from libmisc to libview and make the API public
[evince.git] / libmisc / ev-page-action.h
1 /*
2  *  Copyright (C) 2003, 2004 Marco Pesenti Gritti
3  *  Copyright (C) 2003, 2004 Christian Persch
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  *
19  */
20
21 #ifndef EV_PAGE_ACTION_H
22 #define EV_PAGE_ACTION_H
23
24 #include <gtk/gtk.h>
25
26 #include <evince-document.h>
27
28 G_BEGIN_DECLS
29
30 #define EV_TYPE_PAGE_ACTION            (ev_page_action_get_type ())
31 #define EV_PAGE_ACTION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_ACTION, EvPageAction))
32 #define EV_PAGE_ACTION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_PAGE_ACTION, EvPageActionClass))
33 #define EV_IS_PAGE_ACTION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PAGE_ACTION))
34 #define EV_IS_PAGE_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_PAGE_ACTION))
35 #define EV_PAGE_ACTION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_PAGE_ACTION, EvPageActionClass))
36
37 typedef struct _EvPageAction            EvPageAction;
38 typedef struct _EvPageActionPrivate     EvPageActionPrivate;
39 typedef struct _EvPageActionClass               EvPageActionClass;
40
41 struct _EvPageAction
42 {
43         GtkAction parent;
44         
45         /*< private >*/
46         EvPageActionPrivate *priv;
47 };
48
49 struct _EvPageActionClass
50 {
51         GtkActionClass parent_class;
52
53         void     (* activate_link) (EvPageAction *page_action,
54                                     EvLink       *link);
55 };
56
57 GType ev_page_action_get_type     (void);
58 void  ev_page_action_set_document (EvPageAction *page_action,
59                                    EvDocument   *document);
60 void  ev_page_action_set_model    (EvPageAction *page_action,
61                                    GtkTreeModel *model);
62 void  ev_page_action_grab_focus   (EvPageAction *page_action);
63
64 G_END_DECLS
65
66 #endif