[goobox] Fix notification hint types
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goobox] Fix notification hint types
- Date: Sun, 15 Apr 2012 09:44:15 +0000 (UTC)
commit 4d80a39c95b1056baa1cb9e89193b05cd338048e
Author: GyÃrgy Ballà <ballogy freestart hu>
Date: Sun Apr 15 11:36:12 2012 +0200
Fix notification hint types
This patch fixes the problem that notification-daemon crashes
immediately when goobox sends a notification.
notification-daemon expects an actual boolean for the action-icons hint,
and was crashing when it received a byte instead.
src/main.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index b133e99..0f8a9d5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -729,15 +729,15 @@ system_notify (GooWindow *window,
window,
NULL);
- notify_notification_set_hint_byte (notification,
- "action-icons",
- TRUE);
+ notify_notification_set_hint (notification,
+ "action-icons",
+ g_variant_new_boolean (TRUE));
}
if (notification_supports_persistence)
- notify_notification_set_hint_byte (notification,
- "resident" /* "transient" */,
- TRUE);
+ notify_notification_set_hint (notification,
+ "resident" /* "transient" */,
+ g_variant_new_boolean (TRUE));
notify_notification_show (notification, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]