]> www.fi.muni.cz Git - evince.git/blob - shell/ev-navigation-action-widget.h
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / shell / ev-navigation-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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  */
20
21 #include <gtk/gtk.h>
22
23 #define EV_TYPE_NAVIGATION_ACTION_WIDGET (ev_navigation_action_widget_get_type ())
24 #define EV_NAVIGATION_ACTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_NAVIGATION_ACTION_WIDGET, EvNavigationActionWidget))
25
26 typedef struct _EvNavigationActionWidget EvNavigationActionWidget;
27 typedef struct _EvNavigationActionWidgetClass EvNavigationActionWidgetClass;
28
29 struct _EvNavigationActionWidget
30 {
31         GtkToggleToolButton parent;
32
33         GtkMenu *menu;
34 };
35
36 struct _EvNavigationActionWidgetClass
37 {
38         GtkToggleToolButtonClass parent_class;
39         
40         void  (*show_menu) (EvNavigationActionWidget *widget);
41 };
42
43 GType ev_navigation_action_widget_get_type   (void);
44
45 void
46 ev_navigation_action_widget_set_menu(EvNavigationActionWidget *widget, GtkWidget *menu);