Bug 793125 - Crash due to popup menus left attached too long
[evolution.git] / src / calendar / gui / e-comp-editor-page.h
blob114cbdf3d7ab6fa77cc4d0a88cc7344ad47cf4ee
1 /*
2 * Copyright (C) 2015 Red Hat, Inc. (www.redhat.com)
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 * for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef E_COMP_EDITOR_PAGE_H
19 #define E_COMP_EDITOR_PAGE_H
21 #include <gtk/gtk.h>
22 #include <libecal/libecal.h>
24 #include <calendar/gui/e-comp-editor-property-part.h>
26 /* Standard GObject macros */
28 #define E_TYPE_COMP_EDITOR_PAGE \
29 (e_comp_editor_page_get_type ())
30 #define E_COMP_EDITOR_PAGE(obj) \
31 (G_TYPE_CHECK_INSTANCE_CAST \
32 ((obj), E_TYPE_COMP_EDITOR_PAGE, ECompEditorPage))
33 #define E_COMP_EDITOR_PAGE_CLASS(cls) \
34 (G_TYPE_CHECK_CLASS_CAST \
35 ((cls), E_TYPE_COMP_EDITOR_PAGE, ECompEditorPageClass))
36 #define E_IS_COMP_EDITOR_PAGE(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE \
38 ((obj), E_TYPE_COMP_EDITOR_PAGE))
39 #define E_IS_COMP_EDITOR_PAGE_CLASS(cls) \
40 (G_TYPE_CHECK_CLASS_TYPE \
41 ((cls), E_TYPE_COMP_EDITOR_PAGE))
42 #define E_COMP_EDITOR_PAGE_GET_CLASS(obj) \
43 (G_TYPE_INSTANCE_GET_CLASS \
44 ((obj), E_TYPE_COMP_EDITOR_PAGE, ECompEditorPageClass))
46 G_BEGIN_DECLS
48 struct _ECompEditor;
50 typedef struct _ECompEditorPage ECompEditorPage;
51 typedef struct _ECompEditorPageClass ECompEditorPageClass;
52 typedef struct _ECompEditorPagePrivate ECompEditorPagePrivate;
54 struct _ECompEditorPage {
55 GtkGrid parent;
57 ECompEditorPagePrivate *priv;
60 struct _ECompEditorPageClass {
61 GtkGridClass parent_class;
63 /* Virtual functions */
64 void (* sensitize_widgets) (ECompEditorPage *page,
65 gboolean force_insensitive);
66 void (* fill_widgets) (ECompEditorPage *page,
67 icalcomponent *component);
68 gboolean (* fill_component) (ECompEditorPage *page,
69 icalcomponent *component);
71 /* Signals */
72 void (* changed) (ECompEditorPage *page);
75 GType e_comp_editor_page_get_type (void) G_GNUC_CONST;
77 struct _ECompEditor *
78 e_comp_editor_page_ref_editor (ECompEditorPage *page);
79 void e_comp_editor_page_add_property_part (ECompEditorPage *page,
80 ECompEditorPropertyPart *part,
81 gint attach_left,
82 gint attach_top,
83 gint attach_width,
84 gint attach_height);
85 void e_comp_editor_page_sensitize_widgets (ECompEditorPage *page,
86 gboolean force_insensitive);
87 void e_comp_editor_page_fill_widgets (ECompEditorPage *page,
88 icalcomponent *component);
89 gboolean e_comp_editor_page_fill_component (ECompEditorPage *page,
90 icalcomponent *component);
91 void e_comp_editor_page_emit_changed (ECompEditorPage *page);
92 gboolean e_comp_editor_page_get_updating (ECompEditorPage *page);
93 void e_comp_editor_page_set_updating (ECompEditorPage *page,
94 gboolean updating);
95 void e_comp_editor_page_select (ECompEditorPage *page);
97 G_END_DECLS
99 #endif /* E_COMP_EDITOR_PAGE_H */