2 * Copyright (C) 2005 Marco Pesenti Gritti
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)
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.
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.
24 #include <glib-object.h>
30 #define EV_TYPE_HISTORY (ev_history_get_type ())
31 #define EV_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_HISTORY, EvHistory))
32 #define EV_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_HISTORY, EvHistoryClass))
33 #define EV_IS_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_HISTORY))
34 #define EV_IS_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), EV_TYPE_HISTORY))
35 #define EV_HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_HISTORY, EvHistoryClass))
37 typedef struct _EvHistory EvHistory;
38 typedef struct _EvHistoryPrivate EvHistoryPrivate;
39 typedef struct _EvHistoryClass EvHistoryClass;
46 EvHistoryPrivate *priv;
49 struct _EvHistoryClass
51 GObjectClass parent_class;
54 GType ev_history_get_type (void);
55 EvHistory *ev_history_new (void);
56 void ev_history_add_link (EvHistory *history,
58 void ev_history_add_page (EvHistory *history,
60 EvLink *ev_history_get_link_nth (EvHistory *history,
62 int ev_history_get_n_links (EvHistory *history);
63 int ev_history_get_current_index (EvHistory *history);
64 void ev_history_set_current_index (EvHistory *history,