]> www.fi.muni.cz Git - evince.git/blob - shell/ev-open-recent-action.h
70bce0eef8d3774ffb12bfc2fcd5c79338e7f70a
[evince.git] / shell / ev-open-recent-action.h
1 /*
2  *  Copyright (C) 2007, Carlos Garcia Campos  <carlosgc@gnome.org>
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 #ifndef EV_OPEN_RECENT_ACTION_H
21 #define EV_OPEN_RECENT_ACTION_H
22
23 #include <gtk/gtkaction.h>
24 #include <gtk/gtkmenutoolbutton.h>
25
26 G_BEGIN_DECLS
27
28 #define EV_TYPE_OPEN_RECENT_ACTION            (ev_open_recent_action_get_type ())
29 #define EV_OPEN_RECENT_ACTION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_OPEN_RECENT_ACTION, EvOpenRecentAction))
30 #define EV_OPEN_RECENT_ACTION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_OPEN_RECENT_ACTION, EvOpenRecentActionClass))
31 #define EV_IS_OPEN_RECENT_ACTION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_OPEN_RECENT_ACTION))
32 #define EV_IS_OPEN_RECENT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_OPEN_RECENT_ACTION))
33 #define EV_OPEN_RECENT_ACTION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_OPEN_RECENT_ACTION, EvOpenRecentActionClass))
34
35 typedef struct _EvOpenRecentAction      EvOpenRecentAction;
36 typedef struct _EvOpenRecentActionClass EvOpenRecentActionClass;
37
38 struct _EvOpenRecentAction {
39         GtkAction parent;
40 };
41
42 struct _EvOpenRecentActionClass {
43         GtkActionClass parent_class;
44
45         void (* item_activated) (EvOpenRecentAction *action,
46                                  const gchar        *uri);
47 };
48
49 GType ev_open_recent_action_get_type (void) G_GNUC_CONST;
50
51 G_END_DECLS
52
53 #endif /* EV_OPEN_RECENT_ACTION_H */