diff --git a/gio/ChangeLog b/gio/ChangeLog index dcd5282ea..4c8922346 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,7 @@ +2009-01-19 Matthias Clasen + + * gdesktopappinfo.c (g_desktop_app_info_new): Expand the docs. + 2009-01-19 Matthias Clasen * === Released 2.19.5 === diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index 2ea2e8111..4cb21546d 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -331,10 +331,20 @@ g_desktop_app_info_new_from_filename (const char *filename) * g_desktop_app_info_new: * @desktop_id: the desktop file id * - * Creates a new #GDesktopAppInfo. + * Creates a new #GDesktopAppInfo based on a desktop file id. + * + * A desktop file id is the basename of the desktop file, including the + * .desktop extension. GIO is looking for a desktop file with this name + * in the applications subdirectories of the XDG data + * directories (i.e. the directories specified in the + * XDG_DATA_HOME and XDG_DATA_DIRS environment + * variables). GIO also supports the prefix-to-subdirectory mapping that is + * described in the Menu Spec + * (i.e. a desktop id of kde-foo.desktop will match + * /usr/share/applications/kde/foo.desktop). * * Returns: a new #GDesktopAppInfo, or %NULL if no desktop file with that id - **/ + */ GDesktopAppInfo * g_desktop_app_info_new (const char *desktop_id) {