aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/appmenu/e_mod_appmenu_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/appmenu/e_mod_appmenu_private.h')
-rw-r--r--src/modules/appmenu/e_mod_appmenu_private.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/modules/appmenu/e_mod_appmenu_private.h b/src/modules/appmenu/e_mod_appmenu_private.h
new file mode 100644
index 000000000..7bb5a16ef
--- /dev/null
+++ b/src/modules/appmenu/e_mod_appmenu_private.h
@@ -0,0 +1,44 @@
+#ifndef APPMENU_PRIVATE_H
+#define APPMENU_PRIVATE_H
+
+#include "e.h"
+
+typedef struct _E_AppMenu_Window E_AppMenu_Window;
+
+typedef struct _E_AppMenu_Context
+{
+ Eina_List *instances;
+ EDBus_Connection *conn;
+ EDBus_Service_Interface *iface;
+ Eina_List *windows;
+ unsigned window_with_focus;
+ E_AppMenu_Window *window;
+ Ecore_Event_Handler *events[2];
+} E_AppMenu_Context;
+
+typedef struct _E_AppMenu_Instance
+{
+ Evas_Object *box;
+ Evas *evas;
+ E_Gadcon_Client *gcc;
+ E_AppMenu_Context *ctx;
+ Eina_Bool orientation_horizontal;
+} E_AppMenu_Instance;
+
+struct _E_AppMenu_Window
+{
+ unsigned window_id;
+ const char *bus_id;
+ const char *path;
+ E_DBusMenu_Ctx *dbus_menu;
+ E_AppMenu_Context *ctxt;
+ E_DBusMenu_Item *root_item;
+};
+
+void appmenu_window_free(E_AppMenu_Window *window);
+void appmenu_dbus_registrar_server_init(E_AppMenu_Context *ctx);
+void appmenu_application_monitor(void *data, const char *bus, const char *old, const char *new);
+void appmenu_menu_render(E_AppMenu_Context *ctxt EINA_UNUSED, E_AppMenu_Window *w);
+void appmenu_menu_of_instance_render(E_AppMenu_Instance *inst, E_AppMenu_Window *window);
+
+#endif