~ubuntu-branches/ubuntu/vivid/unity-gtk-module/vivid

« back to all changes in this revision

Viewing changes to lib/unity-gtk-menu-section-private.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-05-23 16:59:18 UTC
  • Revision ID: package-import@ubuntu.com-20130523165918-f9lafjyilewrisye
Tags: upstream-0.0.0daily13.05.23.1
ImportĀ upstreamĀ versionĀ 0.0.0daily13.05.23.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2012 Canonical Ltd.
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 *
 
16
 * Authors: Ryan Lortie <desrt@desrt.ca>
 
17
 *          William Hua <william.hua@canonical.com>
 
18
 */
 
19
 
 
20
#ifndef __UNITY_GTK_MENU_SECTION_PRIVATE_H__
 
21
#define __UNITY_GTK_MENU_SECTION_PRIVATE_H__
 
22
 
 
23
#include <gio/gio.h>
 
24
 
 
25
G_BEGIN_DECLS
 
26
 
 
27
typedef struct _UnityGtkMenuSection UnityGtkMenuSection;
 
28
typedef GMenuModelClass             UnityGtkMenuSectionClass;
 
29
 
 
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))
 
36
 
 
37
G_END_DECLS
 
38
 
 
39
#include "unity-gtk-menu-shell-private.h"
 
40
 
 
41
G_BEGIN_DECLS
 
42
 
 
43
struct _UnityGtkMenuSection
 
44
{
 
45
  GMenuModel parent_instance;
 
46
 
 
47
  /*< private >*/
 
48
  UnityGtkMenuShell *parent_shell;
 
49
  guint              section_index;
 
50
};
 
51
 
 
52
GType                 unity_gtk_menu_section_get_type       (void)                               G_GNUC_INTERNAL;
 
53
 
 
54
UnityGtkMenuSection * unity_gtk_menu_section_new            (UnityGtkMenuShell   *parent_shell,
 
55
                                                             guint                section_index) G_GNUC_INTERNAL;
 
56
 
 
57
GSequenceIter *       unity_gtk_menu_section_get_begin_iter (UnityGtkMenuSection *section)       G_GNUC_INTERNAL;
 
58
 
 
59
GSequenceIter *       unity_gtk_menu_section_get_end_iter   (UnityGtkMenuSection *section)       G_GNUC_INTERNAL;
 
60
 
 
61
GSequenceIter *       unity_gtk_menu_section_get_iter       (UnityGtkMenuSection *section,
 
62
                                                             guint                index)         G_GNUC_INTERNAL;
 
63
 
 
64
void                  unity_gtk_menu_section_print          (UnityGtkMenuSection *section,
 
65
                                                             guint                indent)        G_GNUC_INTERNAL;
 
66
 
 
67
G_END_DECLS
 
68
 
 
69
#endif /* __UNITY_GTK_MENU_SECTION_PRIVATE_H__ */