[glib] tests: unbreak desktop-app-info test for jhbuild
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] tests: unbreak desktop-app-info test for jhbuild
- Date: Tue, 28 Dec 2010 11:20:00 +0000 (UTC)
commit f248ab1b60a64df88a1578db81a3e263199d584c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Dec 28 12:17:10 2010 +0100
tests: unbreak desktop-app-info test for jhbuild
If we have a jhbuilt version of gedit installed, this will fail, as it
will succeed in deleting its desktop file.
gio/tests/desktop-app-info.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c
index b9ae777..6c6e313 100644
--- a/gio/tests/desktop-app-info.c
+++ b/gio/tests/desktop-app-info.c
@@ -82,7 +82,7 @@ test_delete (void)
if (g_file_test ("/usr/share/applications/gedit.desktop", G_FILE_TEST_EXISTS))
{
- info = (GAppInfo*)g_desktop_app_info_new ("gedit.desktop");
+ info = (GAppInfo*)g_desktop_app_info_new_from_filename ("/usr/share/applications/gedit.desktop");
g_assert (info);
res = g_app_info_can_delete (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]