1 | /* |
2 | * Copyright © 2014 Codethink Limited |
3 | * |
4 | * This library is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU Lesser General Public |
6 | * License as published by the Free Software Foundation; either |
7 | * version 2 of the licence, or (at your option) any later version. |
8 | * |
9 | * This library 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 GNU |
12 | * Lesser General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Lesser General Public |
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
16 | * |
17 | * Author: Ryan Lortie <desrt@desrt.ca> |
18 | */ |
19 | |
20 | #ifndef __GTK_MENU_SECTION_BOX_PRIVATE_H__ |
21 | #define |
22 | |
23 | #include <gtk/gtkmenutrackeritemprivate.h> |
24 | #include <gtk/gtkbox.h> |
25 | #include <gtk/gtkpopovermenu.h> |
26 | |
27 | G_BEGIN_DECLS |
28 | |
29 | #define (gtk_menu_section_box_get_type ()) |
30 | #define (inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \ |
31 | GTK_TYPE_MENU_SECTION_BOX, GtkMenuSectionBox)) |
32 | #define (class) (G_TYPE_CHECK_CLASS_CAST ((class), \ |
33 | GTK_TYPE_MENU_SECTION_BOX, GtkMenuSectionBoxClass)) |
34 | #define (inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \ |
35 | GTK_TYPE_MENU_SECTION_BOX)) |
36 | #define (class) (G_TYPE_CHECK_CLASS_TYPE ((class), \ |
37 | GTK_TYPE_MENU_SECTION_BOX)) |
38 | #define (inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \ |
39 | GTK_TYPE_MENU_SECTION_BOX, GtkMenuSectionBoxClass)) |
40 | |
41 | typedef struct _GtkMenuSectionBox ; |
42 | |
43 | GType (void) G_GNUC_CONST; |
44 | void (GtkPopoverMenu *popover, |
45 | GMenuModel *model, |
46 | GtkPopoverMenuFlags flags); |
47 | |
48 | gboolean (GtkPopoverMenu *popover, |
49 | GtkWidget *child, |
50 | const char *id); |
51 | |
52 | gboolean (GtkPopoverMenu *popover, |
53 | GtkWidget *child); |
54 | |
55 | G_END_DECLS |
56 | |
57 | #endif /* __GTK_MENU_SECTION_BOX_PRIVATE_H__ */ |
58 | |