aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-17 12:53:03 -0600
committerTed Gould <ted@gould.cx>2010-02-17 12:53:03 -0600
commit3d07cf168800200269449e1d5d2b3e682c8fc033 (patch)
treed3396409f6fdb8e0ca3e36e81e0cbd66cf6e422a
parent5da2f0c0661f6d5ebced459ec677aa86441894b0 (diff)
downloadayatana-indicator-messages-3d07cf168800200269449e1d5d2b3e682c8fc033.tar.gz
ayatana-indicator-messages-3d07cf168800200269449e1d5d2b3e682c8fc033.tar.bz2
ayatana-indicator-messages-3d07cf168800200269449e1d5d2b3e682c8fc033.zip
Fleshing out the get_items function
-rw-r--r--src/launcher-menu-item.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/launcher-menu-item.c b/src/launcher-menu-item.c
index e961573..d542e11 100644
--- a/src/launcher-menu-item.c
+++ b/src/launcher-menu-item.c
@@ -286,6 +286,7 @@ launcher_menu_item_set_eclipsed (LauncherMenuItem * li, gboolean eclipsed)
return;
}
+/* Check to see if this item is eclipsed */
gboolean
launcher_menu_item_get_eclipsed (LauncherMenuItem * li)
{
@@ -294,8 +295,12 @@ launcher_menu_item_get_eclipsed (LauncherMenuItem * li)
return !show;
}
+/* Gets the shortcuts that are associated with this
+ launcher. They're a list of DbusmenuMenuitems */
GList *
launcher_menu_item_get_items (LauncherMenuItem * li)
{
- return NULL;
+ g_return_val_if_fail(IS_LAUNCHER_MENU_ITEM(li), NULL);
+ LauncherMenuItemPrivate * priv = LAUNCHER_MENU_ITEM_GET_PRIVATE(li);
+ return priv->shortcuts;
}