summaryrefslogtreecommitdiff
path: root/applets/notification_area/status-notifier/sn-dbus-menu.h
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2017-01-20 11:03:03 +0100
committerlukefromdc <[email protected]>2017-01-23 13:49:34 -0500
commitda419c619744efc754e72df2e2101a32adca8a37 (patch)
tree37df54c88607741686a5e2a50a49b90811c021a2 /applets/notification_area/status-notifier/sn-dbus-menu.h
parent7d39b2e82f46777efa67224f078c1cec9e827654 (diff)
downloadmate-panel-da419c619744efc754e72df2e2101a32adca8a37.tar.bz2
mate-panel-da419c619744efc754e72df2e2101a32adca8a37.tar.xz
Lower GLib dependency
Diffstat (limited to 'applets/notification_area/status-notifier/sn-dbus-menu.h')
-rw-r--r--applets/notification_area/status-notifier/sn-dbus-menu.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/applets/notification_area/status-notifier/sn-dbus-menu.h b/applets/notification_area/status-notifier/sn-dbus-menu.h
index 39907d07..d92f8eb8 100644
--- a/applets/notification_area/status-notifier/sn-dbus-menu.h
+++ b/applets/notification_area/status-notifier/sn-dbus-menu.h
@@ -22,8 +22,19 @@
G_BEGIN_DECLS
-#define SN_TYPE_DBUS_MENU sn_dbus_menu_get_type ()
-G_DECLARE_FINAL_TYPE (SnDBusMenu, sn_dbus_menu, SN, DBUS_MENU, GtkMenu)
+#define SN_TYPE_DBUS_MENU (sn_dbus_menu_get_type ())
+#define SN_DBUS_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SN_TYPE_DBUS_MENU, SnDBusMenu))
+#define SN_IS_DBUS_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SN_TYPE_DBUS_MENU))
+
+typedef struct _SnDBusMenu SnDBusMenu;
+typedef struct _SnDBusMenuClass SnDBusMenuClass;
+
+struct _SnDBusMenuClass
+{
+ GtkMenuClass parent_class;
+};
+
+GType sn_dbus_menu_get_type (void);
GtkMenu *sn_dbus_menu_new (const gchar *bus_name,
const gchar *object_path);