summaryrefslogtreecommitdiff
path: root/endless/eosactionmenu-private.h
diff options
context:
space:
mode:
authorP. F. Chimento <philip.chimento@gmail.com>2013-06-25 14:07:04 -0700
committerP. F. Chimento <philip.chimento@gmail.com>2013-06-25 14:07:04 -0700
commitdb4c92e4b25380451114a7cb3c6d5838d561d52a (patch)
tree2789d93edacc3b3a3ef67284ddc789d61bc61775 /endless/eosactionmenu-private.h
parent83476573ea208d34abc5bd9e3b431a1b903eeb64 (diff)
parentfaa71edb558cc8f81bc1825b1a0af06760cd49ee (diff)
Merge pull request #115 from endlessm/issues/79
Issues/79
Diffstat (limited to 'endless/eosactionmenu-private.h')
-rw-r--r--endless/eosactionmenu-private.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/endless/eosactionmenu-private.h b/endless/eosactionmenu-private.h
new file mode 100644
index 0000000..8b3755e
--- /dev/null
+++ b/endless/eosactionmenu-private.h
@@ -0,0 +1,71 @@
+/* Copyright 2013 Endless Mobile, Inc. */
+
+#ifndef EOS_ACTION_MENU_H
+#define EOS_ACTION_MENU_H
+
+#include "eostypes.h"
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define EOS_TYPE_ACTION_MENU eos_action_menu_get_type()
+
+#define EOS_ACTION_MENU(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
+ EOS_TYPE_ACTION_MENU, EosActionMenu))
+
+#define EOS_ACTION_MENU_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST ((klass), \
+ EOS_TYPE_ACTION_MENU, EosActionMenuClass))
+
+#define EOS_IS_ACTION_MENU(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
+ EOS_TYPE_ACTION_MENU))
+
+#define EOS_IS_ACTION_MENU_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE ((klass), \
+ EOS_TYPE_ACTION_MENU))
+
+#define EOS_ACTION_MENU_GET_CLASS(obj) \
+ (G_TYPE_INSTANCE_GET_CLASS ((obj), \
+ EOS_TYPE_ACTION_MENU, EosActionMenuClass))
+
+typedef struct _EosActionMenu EosActionMenu;
+typedef struct _EosActionMenuClass EosActionMenuClass;
+typedef struct _EosActionMenuPrivate EosActionMenuPrivate;
+
+struct _EosActionMenu
+{
+ GtkGrid parent;
+
+ EosActionMenuPrivate *priv;
+};
+
+struct _EosActionMenuClass
+{
+ GtkGridClass parent_class;
+};
+
+GType eos_action_menu_get_type (void) G_GNUC_CONST;
+
+GtkWidget *eos_action_menu_new ();
+
+void eos_action_menu_add_action (EosActionMenu *menu,
+ GtkAction *action);
+
+GtkAction *eos_action_menu_get_action (EosActionMenu *menu,
+ const gchar *name);
+
+GList *eos_action_menu_list_actions (EosActionMenu *menu);
+
+
+void eos_action_menu_remove_action (EosActionMenu *menu,
+ GtkAction *action);
+
+void eos_action_menu_remove_action_by_name (EosActionMenu *menu,
+ const gchar *name);
+
+G_END_DECLS
+
+#endif /* EOS_ACTION_MENU_H */