~ted/indicator-messages/menu-update

« back to all changes in this revision

Viewing changes to src/launcher-menu-item.c

  • Committer: Ted Gould
  • Date: 2009-08-27 01:25:00 UTC
  • mfrom: (124.1.2 lift-and-separate)
  • Revision ID: ted@canonical.com-20090827012500-9g7vokrfo1175h8t
Merging in the lift-and-separate branch to get the description function on there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
        return priv->desktop;
189
189
}
190
190
 
 
191
/* Gets the decription for the item that should
 
192
   go in the messaging menu */
 
193
const gchar *
 
194
launcher_menu_item_get_description (LauncherMenuItem * li)
 
195
{
 
196
        g_return_val_if_fail(IS_LAUNCHER_MENU_ITEM(li), NULL);
 
197
        LauncherMenuItemPrivate * priv = LAUNCHER_MENU_ITEM_GET_PRIVATE(li);
 
198
        return g_app_info_get_description(priv->appinfo);
 
199
}
 
200
 
191
201
/* Hides the menu item based on whether it is eclipsed
192
202
   or not. */
193
203
void