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

« back to all changes in this revision

Viewing changes to gtk/ubuntumenuproxy.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_H__
27
 
#define __UBUNTU_MENU_PROXY_H__
28
 
 
29
 
#include <gtk/gtkwidget.h>
30
 
#include <gtk/gtktypeutils.h>
31
 
 
32
 
G_BEGIN_DECLS
33
 
 
34
 
#define UBUNTU_TYPE_MENU_PROXY           (ubuntu_menu_proxy_get_type ())
35
 
#define UBUNTU_MENU_PROXY(o)             (G_TYPE_CHECK_INSTANCE_CAST ((o), UBUNTU_TYPE_MENU_PROXY, UbuntuMenuProxy))
36
 
#define UBUNTU_MENU_PROXY_CLASS(k)       (G_TYPE_CHECK_CLASS_CAST ((k), UBUNTU_TYPE_MENU_PROXY, UbuntuMenuProxyClass))
37
 
#define UBUNTU_IS_MENU_PROXY(o)          (G_TYPE_CHECK_INSTANCE_TYPE ((o), UBUNTU_TYPE_MENU_PROXY))
38
 
#define UBUNTU_IS_MENU_PROXY_CLASS(k)    (G_TYPE_CHECK_CLASS_TYPE ((k), UBUNTU_TYPE_MENU_PROXY))
39
 
#define UBUNTU_MENU_PROXY_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), UBUNTU_TYPE_MENU_PROXY, UbuntuMenuProxyClass))
40
 
 
41
 
 
42
 
typedef struct _UbuntuMenuProxy      UbuntuMenuProxy;
43
 
typedef struct _UbuntuMenuProxyClass UbuntuMenuProxyClass;
44
 
 
45
 
struct _UbuntuMenuProxy
46
 
{
47
 
  GObject parent_object;
48
 
};
49
 
 
50
 
struct _UbuntuMenuProxyClass
51
 
{
52
 
  GObjectClass parent_class;
53
 
 
54
 
  /* vtable */
55
 
  void     (* insert)     (UbuntuMenuProxy *proxy, GtkWidget *parent, GtkWidget *child, guint position);
56
 
  gboolean (* show_local) (UbuntuMenuProxy *proxy);
57
 
 
58
 
  /* signals */
59
 
  void (* inserted)  (UbuntuMenuProxy *proxy, GtkWidget *child);
60
 
};
61
 
 
62
 
GType              ubuntu_menu_proxy_get_type      (void) G_GNUC_CONST;
63
 
UbuntuMenuProxy*   ubuntu_menu_proxy_get           (void);
64
 
void               ubuntu_menu_proxy_insert        (UbuntuMenuProxy *proxy,
65
 
                                                    GtkWidget       *parent,
66
 
                                                    GtkWidget       *child,
67
 
                                                    guint            position);
68
 
gboolean           ubuntu_menu_proxy_show_local    (UbuntuMenuProxy *proxy);
69
 
void               ubuntu_menu_proxy_activate_menu (UbuntuMenuProxy *proxy,
70
 
                                                    GtkWidget       *widget);
71
 
 
72
 
G_END_DECLS
73
 
 
74
 
#endif /* __UBUNTU_MENU_PROXY_H__ */