2
* Copyright (C) 2010 Canonical, Ltd.
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.
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.
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.
19
* Authors: Cody Russell <bratsche@gnome.org>
22
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
23
#error "Only <gtk/gtk.h> can be included directly."
26
#ifndef __UBUNTU_MENU_PROXY_H__
27
#define __UBUNTU_MENU_PROXY_H__
29
#include <gtk/gtkwidget.h>
30
#include <gtk/gtktypeutils.h>
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))
42
typedef struct _UbuntuMenuProxy UbuntuMenuProxy;
43
typedef struct _UbuntuMenuProxyClass UbuntuMenuProxyClass;
45
struct _UbuntuMenuProxy
47
GObject parent_object;
50
struct _UbuntuMenuProxyClass
52
GObjectClass parent_class;
55
void (* insert) (UbuntuMenuProxy *proxy, GtkWidget *parent, GtkWidget *child, guint position);
56
gboolean (* show_local) (UbuntuMenuProxy *proxy);
59
void (* inserted) (UbuntuMenuProxy *proxy, GtkWidget *child);
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,
68
gboolean ubuntu_menu_proxy_show_local (UbuntuMenuProxy *proxy);
69
void ubuntu_menu_proxy_activate_menu (UbuntuMenuProxy *proxy,
74
#endif /* __UBUNTU_MENU_PROXY_H__ */