]> www.fi.muni.cz Git - evince.git/blob - shell/ev-page-action-widget.h
Preliminary history implementation
[evince.git] / shell / ev-page-action-widget.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 #include "ev-page-cache.h"
22  
23 #include <gtk/gtk.h>
24
25 #define EV_TYPE_PAGE_ACTION_WIDGET (ev_page_action_widget_get_type ())
26 #define EV_PAGE_ACTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PAGE_ACTION_WIDGET, EvPageActionWidget))
27
28 typedef struct _EvPageActionWidget EvPageActionWidget;
29 typedef struct _EvPageActionWidgetClass EvPageActionWidgetClass;
30
31 struct _EvPageActionWidget
32 {
33         GtkToolItem parent;
34
35         GtkWidget *entry;
36         GtkWidget *label;
37         EvPageCache *page_cache;
38         guint signal_id;
39         GtkTreeModel *filter_model;
40         GtkTreeModel *model;
41 };
42
43 struct _EvPageActionWidgetClass
44 {
45         GtkToolItemClass parent_class;
46
47         void (* activate_link) (EvPageActionWidget *page_action,
48                                 EvLink             *link);
49 };
50
51 GType ev_page_action_widget_get_type   (void);
52
53 void
54 ev_page_action_widget_update_model (EvPageActionWidget *proxy, GtkTreeModel *model);
55
56 void
57 ev_page_action_widget_set_page_cache (EvPageActionWidget *action_widget,
58                                       EvPageCache        *page_cache);