~indicator-applet-developers/indicator-messages/trunk.13.10

« back to all changes in this revision

Viewing changes to src/im-app-menu-item.h

  • Committer: Tarmac
  • Author(s): Lars Uebernickel, Ted Gould, sergio.schvezov at canonical, Sergio Schvezov, Ken VanDine, Renato Araujo Oliveira Filho, Ricardo Mendoza
  • Date: 2013-08-19 16:51:38 UTC
  • mfrom: (327.1.83 consolidate)
  • Revision ID: tarmac-20130819165138-rtvgstpdkoysfshf
Merge in phablet branch.

Approved by PS Jenkins bot, Pete Woods.

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 it
5
 
 * under the terms of the GNU General Public License version 3, as published
6
 
 * by the Free Software Foundation.
7
 
 *
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.
12
 
 *
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/>.
15
 
 *
16
 
 * Authors:
17
 
 *     Lars Uebernickel <lars.uebernickel@canonical.com>
18
 
 */
19
 
 
20
 
#ifndef __IM_APP_MENU_ITEM_H__
21
 
#define __IM_APP_MENU_ITEM_H__
22
 
 
23
 
#include <gtk/gtk.h>
24
 
 
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))
31
 
 
32
 
typedef struct _ImAppMenuItem        ImAppMenuItem;
33
 
typedef struct _ImAppMenuItemClass   ImAppMenuItemClass;
34
 
typedef struct _ImAppMenuItemPrivate ImAppMenuItemPrivate;
35
 
 
36
 
struct _ImAppMenuItemClass
37
 
{
38
 
  GtkMenuItemClass parent_class;
39
 
};
40
 
 
41
 
struct _ImAppMenuItem
42
 
{
43
 
  GtkMenuItem parent;
44
 
  ImAppMenuItemPrivate *priv;
45
 
};
46
 
 
47
 
GType           im_app_menu_item_get_type           (void);
48
 
 
49
 
void            im_app_menu_item_set_menu_item      (ImAppMenuItem *item,
50
 
                                                     GMenuItem     *menuitem);
51
 
void            im_app_menu_item_set_action_group   (ImAppMenuItem *self,
52
 
                                                     GActionGroup  *action_group);
53
 
 
54
 
#endif