[glib/glib-2-28] Don't ignore SUPPORTS_STARTUP_NOTIFICATION for commandline GAppInfos
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-28] Don't ignore SUPPORTS_STARTUP_NOTIFICATION for commandline GAppInfos
- Date: Sat, 21 May 2011 04:01:11 +0000 (UTC)
commit 859c8f7ed74c7760906ac27b835a0e1269c42388
Author: Michael Terry <michael terry canonical com>
Date: Mon Apr 25 08:29:35 2011 -0400
Don't ignore SUPPORTS_STARTUP_NOTIFICATION for commandline GAppInfos
https://bugzilla.gnome.org/show_bug.cgi?id=648416
gio/gdesktopappinfo.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index 227bacc..d9d17b2 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -1932,10 +1932,10 @@ g_app_info_create_from_commandline (const char *commandline,
info->filename = NULL;
info->desktop_id = NULL;
- info->terminal = flags & G_APP_INFO_CREATE_NEEDS_TERMINAL;
- info->startup_notify = flags & G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION;
+ info->terminal = (flags & G_APP_INFO_CREATE_NEEDS_TERMINAL) != 0;
+ info->startup_notify = (flags & G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION) != 0;
info->hidden = FALSE;
- if (flags & G_APP_INFO_CREATE_SUPPORTS_URIS)
+ if ((flags & G_APP_INFO_CREATE_SUPPORTS_URIS) != 0)
info->exec = g_strconcat (commandline, " %u", NULL);
else
info->exec = g_strconcat (commandline, " %f", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]