diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-26 11:34:50 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-26 11:34:50 +0100 |
commit | 979a9b32a625adb29af3b5bd6bfe324268a51b2c (patch) | |
tree | 00154582ab5c626d410adeb19ae0ec16916f3241 /src/im-phone-menu.h | |
parent | e5985f89f62fdac65d4f80037835691630cc3d2c (diff) | |
download | ayatana-indicator-messages-979a9b32a625adb29af3b5bd6bfe324268a51b2c.tar.gz ayatana-indicator-messages-979a9b32a625adb29af3b5bd6bfe324268a51b2c.tar.bz2 ayatana-indicator-messages-979a9b32a625adb29af3b5bd6bfe324268a51b2c.zip |
Canonicalize application ids
Remove trailing '.desktop' and replace all dots by underscores to make
GActionMuxer work (which uses the dot as a separator).
In order to contain the canonicalization to ImApplicationList, its signals now
contain string parameters to id and icon name instead of GDesktopAppInfo
pointers.
Diffstat (limited to 'src/im-phone-menu.h')
-rw-r--r-- | src/im-phone-menu.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/im-phone-menu.h b/src/im-phone-menu.h index b0b6b4f..f6a6118 100644 --- a/src/im-phone-menu.h +++ b/src/im-phone-menu.h @@ -21,7 +21,6 @@ #define __IM_PHONE_MENU_H__ #include <gio/gio.h> -#include <gio/gdesktopappinfo.h> #define IM_TYPE_PHONE_MENU (im_phone_menu_get_type ()) #define IM_PHONE_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IM_TYPE_PHONE_MENU, ImPhoneMenu)) @@ -39,7 +38,8 @@ ImPhoneMenu * im_phone_menu_new (void); GMenuModel * im_phone_menu_get_model (ImPhoneMenu *menu); void im_phone_menu_add_message (ImPhoneMenu *menu, - GDesktopAppInfo *app, + const gchar *app_id, + const gchar *app_icon, const gchar *id, const gchar *iconstr, const gchar *title, @@ -48,20 +48,20 @@ void im_phone_menu_add_message (ImPhoneMenu *men gint64 time); void im_phone_menu_remove_message (ImPhoneMenu *menu, - GDesktopAppInfo *app, + const gchar *app_id, const gchar *id); void im_phone_menu_add_source (ImPhoneMenu *menu, - GDesktopAppInfo *app, + const gchar *app_id, const gchar *id, const gchar *label, const gchar *iconstr); void im_phone_menu_remove_source (ImPhoneMenu *menu, - GDesktopAppInfo *app, + const gchar *app_id, const gchar *id); -void im_phone_menu_remove_application (ImPhoneMenu *menu, - GDesktopAppInfo *app); +void im_phone_menu_remove_application (ImPhoneMenu *menu, + const gchar *app_id); #endif |