mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
Don't include NULLs in the list of returned app infos.
2007-12-30 Matthias Clasen <mclasen@redhat.com> * gdesktopfileinfo.c (g_app_info_get_all): Don't include NULLs in the list of returned app infos. svn path=/trunk/; revision=6218
This commit is contained in:
parent
c009b04f42
commit
4ea56399b6
@ -1,3 +1,8 @@
|
|||||||
|
2007-12-30 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gdesktopfileinfo.c (g_app_info_get_all): Don't include NULLs
|
||||||
|
in the list of returned app infos.
|
||||||
|
|
||||||
2007-12-30 Matthias Clasen <mclasen@redhat.com>
|
2007-12-30 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gappinfo.c: Fix a cross-reference
|
* gappinfo.c: Fix a cross-reference
|
||||||
|
@ -1722,7 +1722,10 @@ g_app_info_get_all (void)
|
|||||||
infos = NULL;
|
infos = NULL;
|
||||||
g_hash_table_iter_init (&iter, apps);
|
g_hash_table_iter_init (&iter, apps);
|
||||||
while (g_hash_table_iter_next (&iter, NULL, &value))
|
while (g_hash_table_iter_next (&iter, NULL, &value))
|
||||||
infos = g_list_prepend (infos, value);
|
{
|
||||||
|
if (value)
|
||||||
|
infos = g_list_prepend (infos, value);
|
||||||
|
}
|
||||||
|
|
||||||
g_hash_table_destroy (apps);
|
g_hash_table_destroy (apps);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user