[gnome-shell] Add appInfo.get_desktop_file_path method
- From: Siegfried-Angel Gevatter Pujals <sgevatter src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Add appInfo.get_desktop_file_path method
- Date: Wed, 29 Jul 2009 21:40:44 +0000 (UTC)
commit 93ea4b07c163532dc44fbfae14b832bf43e6ad31
Author: Siegfried-Angel Gevatter Pujals <rainct ubuntu com>
Date: Wed Jul 29 23:36:48 2009 +0200
Add appInfo.get_desktop_file_path method
Add shell_app_info_get_desktop_file_path, matching *_get_executable,
*_get_id, etc. This is useful for Zeitgeist.
src/shell-app-system.c | 6 ++++++
src/shell-app-system.h | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-app-system.c b/src/shell-app-system.c
index a7e884b..a8910ca 100644
--- a/src/shell-app-system.c
+++ b/src/shell-app-system.c
@@ -622,6 +622,12 @@ shell_app_info_get_executable (ShellAppInfo *info)
return gmenu_tree_entry_get_exec ((GMenuTreeEntry*)info);
}
+const char *
+shell_app_info_get_desktop_file_path (ShellAppInfo *info)
+{
+ return gmenu_tree_entry_get_desktop_file_path ((GMenuTreeEntry*)info);
+}
+
GIcon *
shell_app_info_get_icon (ShellAppInfo *info)
{
diff --git a/src/shell-app-system.h b/src/shell-app-system.h
index 9735a92..0ec6861 100644
--- a/src/shell-app-system.h
+++ b/src/shell-app-system.h
@@ -57,6 +57,7 @@ const char *shell_app_info_get_id (ShellAppInfo *info);
const char *shell_app_info_get_name (ShellAppInfo *info);
const char *shell_app_info_get_description (ShellAppInfo *info);
const char *shell_app_info_get_executable (ShellAppInfo *info);
+const char *shell_app_info_get_desktop_file_path (ShellAppInfo *info);
GIcon *shell_app_info_get_icon (ShellAppInfo *info);
ClutterActor *shell_app_info_create_icon_texture (ShellAppInfo *info, float size);
GSList *shell_app_info_get_categories (ShellAppInfo *info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]