aboutsummaryrefslogtreecommitdiff
path: root/src/app-menu-item.h
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-05-24 22:28:40 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-05-24 22:28:40 +0200
commite1c600ba95e4520caf471ebf2eb9f41e2580fa98 (patch)
treedb42c23a55c34af9c8a484d55734d4c7d73b1235 /src/app-menu-item.h
parent8960bbafb9805c1e787e70bb2289cb8bc95a5f30 (diff)
downloadayatana-indicator-messages-e1c600ba95e4520caf471ebf2eb9f41e2580fa98.tar.gz
ayatana-indicator-messages-e1c600ba95e4520caf471ebf2eb9f41e2580fa98.tar.bz2
ayatana-indicator-messages-e1c600ba95e4520caf471ebf2eb9f41e2580fa98.zip
Port to gmenu, act I
Work-in-progress of the gmenu port for the service. The bulk of this patch removes everything related to libindicate from the service. Only the static app launchers and their configured shortcut actions are exported for now.
Diffstat (limited to 'src/app-menu-item.h')
-rw-r--r--src/app-menu-item.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/app-menu-item.h b/src/app-menu-item.h
index 74efb6a..785a997 100644
--- a/src/app-menu-item.h
+++ b/src/app-menu-item.h
@@ -22,11 +22,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef __APP_MENU_ITEM_H__
#define __APP_MENU_ITEM_H__
-#include <glib.h>
-#include <glib-object.h>
-
-#include <libdbusmenu-glib/menuitem.h>
-#include <libindicate/listener.h>
+#include <gio/gio.h>
G_BEGIN_DECLS
@@ -46,27 +42,22 @@ typedef struct _AppMenuItem AppMenuItem;
typedef struct _AppMenuItemClass AppMenuItemClass;
struct _AppMenuItemClass {
- DbusmenuMenuitemClass parent_class;
+ GObjectClass parent_class;
void (* count_changed) (guint count);
void (* name_changed) (gchar * name);
- void (* shortcut_added) (DbusmenuMenuitem * mi);
- void (* shortcut_removed) (DbusmenuMenuitem * mi);
};
struct _AppMenuItem {
- DbusmenuMenuitem parent;
+ GObject parent;
};
GType app_menu_item_get_type (void);
AppMenuItem * app_menu_item_new (GDesktopAppInfo *appinfo);
-AppMenuItem * app_menu_item_new_with_server (IndicateListener * listener, IndicateListenerServer * server);
-void app_menu_item_set_server (AppMenuItem *self, IndicateListener *listener, IndicateListenerServer *server);
guint app_menu_item_get_count (AppMenuItem * appitem);
-IndicateListenerServer * app_menu_item_get_server (AppMenuItem * appitem);
const gchar * app_menu_item_get_name (AppMenuItem * appitem);
const gchar * app_menu_item_get_desktop (AppMenuItem * appitem);
-GList * app_menu_item_get_items (AppMenuItem * appitem);
+GMenuModel * app_menu_item_get_menu (AppMenuItem *appitem);
G_END_DECLS