aboutsummaryrefslogtreecommitdiff
path: root/src/launcher-menu-item.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-26 20:25:00 -0500
committerTed Gould <ted@canonical.com>2009-08-26 20:25:00 -0500
commit11f25319d0a2b822bb76bd5c0fad5bf4847d259c (patch)
tree919defb2b012133eaa7e59f59e87698dbf805a38 /src/launcher-menu-item.c
parent2273a4d1f95cf44edb1aad21849eda6fca358deb (diff)
parent21caab3ed3cbb70ec0f2929dd69d9f348162e975 (diff)
downloadayatana-indicator-messages-11f25319d0a2b822bb76bd5c0fad5bf4847d259c.tar.gz
ayatana-indicator-messages-11f25319d0a2b822bb76bd5c0fad5bf4847d259c.tar.bz2
ayatana-indicator-messages-11f25319d0a2b822bb76bd5c0fad5bf4847d259c.zip
Merging in the lift-and-separate branch to get the description function on there.
Diffstat (limited to 'src/launcher-menu-item.c')
-rw-r--r--src/launcher-menu-item.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/launcher-menu-item.c b/src/launcher-menu-item.c
index 9c2dbeb..07598d7 100644
--- a/src/launcher-menu-item.c
+++ b/src/launcher-menu-item.c
@@ -188,6 +188,16 @@ launcher_menu_item_get_desktop (LauncherMenuItem * launchitem)
return priv->desktop;
}
+/* Gets the decription for the item that should
+ go in the messaging menu */
+const gchar *
+launcher_menu_item_get_description (LauncherMenuItem * li)
+{
+ g_return_val_if_fail(IS_LAUNCHER_MENU_ITEM(li), NULL);
+ LauncherMenuItemPrivate * priv = LAUNCHER_MENU_ITEM_GET_PRIVATE(li);
+ return g_app_info_get_description(priv->appinfo);
+}
+
/* Hides the menu item based on whether it is eclipsed
or not. */
void