~ubuntu-branches/ubuntu/utopic/gtk+2.0/utopic

« back to all changes in this revision

Viewing changes to gtk/ubuntumenuproxymodule.h

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-06-07 17:15:49 UTC
  • Revision ID: package-import@ubuntu.com-20130607171549-mxb2rt9jscf01sfb
Tags: 2.24.18-0ubuntu2
* debian/patches/043_ubuntu_menu_proxy.patch,
  debian/patches/072_indicator_menu_update.patch,
  debian/libgtk2.0-0.symbols:
  - drop old menu patches, we deprecate appmenu-gtk in favor of the new
    unity-gtk-module code
* debian/patches/gtk-shell-shows-menubar.patch:
  -list gtk-shell-shows-menubar setting, that's required to have 
   the local menubars hidding under unity in favor of the unity ones, 
   thanks William Hua for the work on those changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2010 Canonical, Ltd.
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 License, 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, write to the
16
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
 * Boston, MA 02111-1307, USA.
18
 
 *
19
 
 * Authors: Cody Russell <bratsche@gnome.org>
20
 
 */
21
 
 
22
 
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
23
 
#error "Only <gtk/gtk.h> can be included directly."
24
 
#endif
25
 
 
26
 
#ifndef __UBUNTU_MENU_PROXY_MODULE_H__
27
 
#define __UBUNTU_MENU_PROXY_MODULE_H__
28
 
 
29
 
#include <glib-object.h>
30
 
#include <gmodule.h>
31
 
 
32
 
G_BEGIN_DECLS
33
 
 
34
 
#define UBUNTU_TYPE_MENU_PROXY_MODULE         (ubuntu_menu_proxy_module_get_type ())
35
 
#define UBUNTU_MENU_PROXY_MODULE(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), UBUNTU_TYPE_MENU_PROXY_MODULE, UbuntuMenuProxyModule))
36
 
#define UBUNTU_MENU_PROXY_MODULE_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST ((k), UBUNTU_TYPE_MENU_PROXY_MODULE, UbuntuMenuProxyModuleClass))
37
 
#define UBUNTU_IS_MENU_MODULE_PROXY(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), UBUNTU_TYPE_MENU_PROXY_MODULE))
38
 
#define UBUNTU_IS_MENU_PROXY_MODULE_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), UBUNTU_TYPE_MENU_PROXY_MODULE))
39
 
#define UBUNTU_MENU_PROXY_MODULE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), UBUNTU_TYPE_MENU_PROXY_MODULE, UbuntuMenuProxyModuleClass))
40
 
 
41
 
typedef struct _UbuntuMenuProxyModule        UbuntuMenuProxyModule;
42
 
typedef struct _UbuntuMenuProxyModuleClass   UbuntuMenuProxyModuleClass;
43
 
typedef struct _UbuntuMenuProxyModulePrivate UbuntuMenuProxyModulePrivate;
44
 
 
45
 
struct _UbuntuMenuProxyModule
46
 
{
47
 
  GTypeModule parent_instance;
48
 
 
49
 
  UbuntuMenuProxyModulePrivate *priv;
50
 
 
51
 
  GModule *library;
52
 
  gchar   *name;
53
 
 
54
 
  void        (* load)     (UbuntuMenuProxyModule *module);
55
 
  void        (* unload)   (UbuntuMenuProxyModule *module);
56
 
};
57
 
 
58
 
struct _UbuntuMenuProxyModuleClass
59
 
{
60
 
  GTypeModuleClass parent_class;
61
 
};
62
 
 
63
 
GType                  ubuntu_menu_proxy_module_get_type (void) G_GNUC_CONST;
64
 
 
65
 
UbuntuMenuProxyModule *ubuntu_menu_proxy_module_get      (void);
66
 
 
67
 
G_END_DECLS
68
 
 
69
 
#endif /* __UBUNTU_MENU_PROXY_MODULE_H__ */