]> git.sur5r.net Git - glabels/blob - src/ui.h
Don't intercept copy/paste operations intended for other widgets
[glabels] / src / ui.h
1 /*
2  *  ui.h
3  *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
7  *  gLabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  gLabels is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __GL_UI_H__
22 #define __GL_UI_H__
23
24 #include <gtk/gtk.h>
25
26 #include "window.h"
27 #include "view.h"
28
29 G_BEGIN_DECLS
30
31
32 #define GL_UI_GLABELS_CLIPBOARD gdk_atom_intern ("GLABELS", FALSE)
33
34
35 GtkUIManager *gl_ui_new                    (glWindow          *window);
36
37 void          gl_ui_unref                  (GtkUIManager      *ui);
38
39 void          gl_ui_update_all             (GtkUIManager      *ui,
40                                             glView            *view);
41
42 void          gl_ui_update_modified_verbs  (GtkUIManager      *ui,
43                                             glLabel           *label);
44
45 void          gl_ui_update_selection_verbs (GtkUIManager      *ui,
46                                             glView            *view);
47
48 void          gl_ui_update_zoom_verbs      (GtkUIManager      *ui,
49                                             glView            *view);
50
51 void          gl_ui_update_paste_verbs     (GtkUIManager      *ui,
52                                             gboolean           can_paste);
53
54 void          gl_ui_update_undo_redo_verbs (GtkUIManager      *ui,
55                                             glLabel           *label);
56
57 G_END_DECLS
58
59 #endif /* __GL_UI_H__ */
60
61
62
63 /*
64  * Local Variables:       -- emacs
65  * mode: C                -- emacs
66  * c-basic-offset: 8      -- emacs
67  * tab-width: 8           -- emacs
68  * indent-tabs-mode: nil  -- emacs
69  * End:                   -- emacs
70  */