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_H__
21 #define __GTK_MENU_SECTION_BOX_H__
22 
23 #include <gtk/gtkmenutrackeritem.h>
24 #include <gtk/gtkstack.h>
25 #include <gtk/gtkbox.h>
26 #include <gtk/gtkpopover.h>
27 
28 G_BEGIN_DECLS
29 
30 #define GTK_TYPE_MENU_SECTION_BOX                           (gtk_menu_section_box_get_type ())
31 #define GTK_MENU_SECTION_BOX(inst)                          (G_TYPE_CHECK_INSTANCE_CAST ((inst),                     \
32                                                              GTK_TYPE_MENU_SECTION_BOX, GtkMenuSectionBox))
33 #define GTK_MENU_SECTION_BOX_CLASS(class)                   (G_TYPE_CHECK_CLASS_CAST ((class),                       \
34                                                              GTK_TYPE_MENU_SECTION_BOX, GtkMenuSectionBoxClass))
35 #define GTK_IS_MENU_SECTION_BOX(inst)                       (G_TYPE_CHECK_INSTANCE_TYPE ((inst),                     \
36                                                              GTK_TYPE_MENU_SECTION_BOX))
37 #define GTK_IS_MENU_SECTION_BOX_CLASS(class)                (G_TYPE_CHECK_CLASS_TYPE ((class),                       \
38                                                              GTK_TYPE_MENU_SECTION_BOX))
39 #define GTK_MENU_SECTION_BOX_GET_CLASS(inst)                (G_TYPE_INSTANCE_GET_CLASS ((inst),                      \
40                                                              GTK_TYPE_MENU_SECTION_BOX, GtkMenuSectionBoxClass))
41 
42 typedef struct _GtkMenuSectionBox                           GtkMenuSectionBox;
43 
44 GType                   gtk_menu_section_box_get_type                   (void) G_GNUC_CONST;
45 void                    gtk_menu_section_box_new_toplevel               (GtkStack    *stack,
46                                                                          GMenuModel  *model,
47                                                                          const gchar *action_namespace,
48                                                                          GtkPopover  *popover);
49 
50 G_END_DECLS
51 
52 #endif /* __GTK_MENU_SECTION_BOX_H__ */
53