2
* Copyright 2012 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation, version 3 of the License.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* Authors: Ryan Lortie <desrt@desrt.ca>
17
* William Hua <william.hua@canonical.com>
20
#ifndef __UNITY_GTK_MENU_SECTION_PRIVATE_H__
21
#define __UNITY_GTK_MENU_SECTION_PRIVATE_H__
27
typedef struct _UnityGtkMenuSection UnityGtkMenuSection;
28
typedef GMenuModelClass UnityGtkMenuSectionClass;
30
#define UNITY_GTK_TYPE_MENU_SECTION (unity_gtk_menu_section_get_type ())
31
#define UNITY_GTK_MENU_SECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_GTK_TYPE_MENU_SECTION, UnityGtkMenuSection))
32
#define UNITY_GTK_IS_MENU_SECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_GTK_TYPE_MENU_SECTION))
33
#define UNITY_GTK_MENU_SECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_GTK_TYPE_MENU_SECTION, UnityGtkMenuSectionClass))
34
#define UNITY_GTK_IS_MENU_SECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_GTK_TYPE_MENU_SECTION))
35
#define UNITY_GTK_MENU_SECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_GTK_TYPE_MENU_SECTION, UnityGtkMenuSectionClass))
39
#include "unity-gtk-menu-shell-private.h"
43
struct _UnityGtkMenuSection
45
GMenuModel parent_instance;
48
UnityGtkMenuShell *parent_shell;
52
GType unity_gtk_menu_section_get_type (void) G_GNUC_INTERNAL;
54
UnityGtkMenuSection * unity_gtk_menu_section_new (UnityGtkMenuShell *parent_shell,
55
guint section_index) G_GNUC_INTERNAL;
57
GSequenceIter * unity_gtk_menu_section_get_begin_iter (UnityGtkMenuSection *section) G_GNUC_INTERNAL;
59
GSequenceIter * unity_gtk_menu_section_get_end_iter (UnityGtkMenuSection *section) G_GNUC_INTERNAL;
61
GSequenceIter * unity_gtk_menu_section_get_iter (UnityGtkMenuSection *section,
62
guint index) G_GNUC_INTERNAL;
64
void unity_gtk_menu_section_print (UnityGtkMenuSection *section,
65
guint indent) G_GNUC_INTERNAL;
69
#endif /* __UNITY_GTK_MENU_SECTION_PRIVATE_H__ */