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 __GTK_MENU_SECTION_BOX_PRIVATE_H__
22
23#include <gtk/gtkmenutrackeritemprivate.h>
24#include <gtk/gtkbox.h>
25#include <gtk/gtkpopovermenu.h>
26
27G_BEGIN_DECLS
28
29#define GTK_TYPE_MENU_SECTION_BOX (gtk_menu_section_box_get_type ())
30#define GTK_MENU_SECTION_BOX(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
31 GTK_TYPE_MENU_SECTION_BOX, GtkMenuSectionBox))
32#define GTK_MENU_SECTION_BOX_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
33 GTK_TYPE_MENU_SECTION_BOX, GtkMenuSectionBoxClass))
34#define GTK_IS_MENU_SECTION_BOX(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
35 GTK_TYPE_MENU_SECTION_BOX))
36#define GTK_IS_MENU_SECTION_BOX_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
37 GTK_TYPE_MENU_SECTION_BOX))
38#define GTK_MENU_SECTION_BOX_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
39 GTK_TYPE_MENU_SECTION_BOX, GtkMenuSectionBoxClass))
40
41typedef struct _GtkMenuSectionBox GtkMenuSectionBox;
42
43GType gtk_menu_section_box_get_type (void) G_GNUC_CONST;
44void gtk_menu_section_box_new_toplevel (GtkPopoverMenu *popover,
45 GMenuModel *model,
46 GtkPopoverMenuFlags flags);
47
48gboolean gtk_menu_section_box_add_custom (GtkPopoverMenu *popover,
49 GtkWidget *child,
50 const char *id);
51
52gboolean gtk_menu_section_box_remove_custom (GtkPopoverMenu *popover,
53 GtkWidget *child);
54
55G_END_DECLS
56
57#endif /* __GTK_MENU_SECTION_BOX_PRIVATE_H__ */
58

source code of gtk/gtk/gtkmenusectionboxprivate.h