2
* Copyright 2012 Canonical Ltd.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License along
14
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Lars Uebernickel <lars.uebernickel@canonical.com>
20
#ifndef __IM_APP_MENU_ITEM_H__
21
#define __IM_APP_MENU_ITEM_H__
25
#define IM_TYPE_APP_MENU_ITEM (im_app_menu_item_get_type ())
26
#define IM_APP_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IM_TYPE_APP_MENU_ITEM, ImAppMenuItem))
27
#define IM_APP_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IM_TYPE_APP_MENU_ITEM, ImAppMenuItemClass))
28
#define IS_IM_APP_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IM_TYPE_APP_MENU_ITEM))
29
#define IS_IM_APP_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IM_TYPE_APP_MENU_ITEM))
30
#define IM_APP_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), IM_TYPE_APP_MENU_ITEM, ImAppMenuItemClass))
32
typedef struct _ImAppMenuItem ImAppMenuItem;
33
typedef struct _ImAppMenuItemClass ImAppMenuItemClass;
34
typedef struct _ImAppMenuItemPrivate ImAppMenuItemPrivate;
36
struct _ImAppMenuItemClass
38
GtkMenuItemClass parent_class;
44
ImAppMenuItemPrivate *priv;
47
GType im_app_menu_item_get_type (void);
49
void im_app_menu_item_set_menu_item (ImAppMenuItem *item,
51
void im_app_menu_item_set_action_group (ImAppMenuItem *self,
52
GActionGroup *action_group);