]> www.fi.muni.cz Git - evince.git/blob - shell/ev-navigation-action.h
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / shell / ev-navigation-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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  */
20
21 #ifndef EV_NAVIGATION_ACTION_H
22 #define EV_NAVIGATION_ACTION_H
23
24 #include <gtk/gtk.h>
25
26 #include "ev-history.h"
27 #include "ev-link.h"
28
29 G_BEGIN_DECLS
30
31 #define EV_TYPE_NAVIGATION_ACTION            (ev_navigation_action_get_type ())
32 #define EV_NAVIGATION_ACTION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_NAVIGATION_ACTION, EvNavigationAction))
33 #define EV_NAVIGATION_ACTION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_NAVIGATION_ACTION, EvNavigationActionClass))
34 #define EV_IS_NAVIGATION_ACTION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_NAVIGATION_ACTION))
35 #define EV_IS_NAVIGATION_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_NAVIGATION_ACTION))
36 #define EV_NAVIGATION_ACTION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_NAVIGATION_ACTION, EvNavigationActionClass))
37
38 typedef struct _EvNavigationAction              EvNavigationAction;
39 typedef struct _EvNavigationActionPrivate       EvNavigationActionPrivate;
40 typedef struct _EvNavigationActionClass         EvNavigationActionClass;
41
42 struct _EvNavigationAction
43 {
44         GtkAction parent;
45         
46         /*< private >*/
47         EvNavigationActionPrivate *priv;
48 };
49
50 struct _EvNavigationActionClass
51 {
52         GtkActionClass parent_class;
53
54         void (* activate_link) (EvNavigationAction *action,
55                                 EvLink             *link);
56 };
57
58 GType   ev_navigation_action_get_type           (void);
59 void    ev_navigation_action_set_history        (EvNavigationAction *action,
60                                                  EvHistory          *history);
61
62 G_END_DECLS
63
64 #endif