[rhythmbox] notification: fix notification hint types



commit 3b472bc16d8bcd32d87548b10cd2835e19b683f5
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Jan 4 20:28:01 2012 +1000

    notification: fix notification hint types
    
    notification-daemon expects an actual boolean for the action-icons
    hint, and was crashing when it received a byte instead.

 plugins/notification/rb-notification-plugin.c |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/plugins/notification/rb-notification-plugin.c b/plugins/notification/rb-notification-plugin.c
index 6af36c2..0671b3d 100644
--- a/plugins/notification/rb-notification-plugin.c
+++ b/plugins/notification/rb-notification-plugin.c
@@ -194,9 +194,9 @@ do_notify (RBNotificationPlugin *plugin,
 
 	if (image_uri != NULL) {
 		notify_notification_clear_hints (notification);
-		notify_notification_set_hint_string (notification,
-						     "image_path",
-						     image_uri);
+		notify_notification_set_hint (notification,
+					      "image_path",
+					      g_variant_new_string (image_uri));
 	}
 
 	notify_notification_clear_actions (notification);
@@ -217,9 +217,7 @@ do_notify (RBNotificationPlugin *plugin,
 							(NotifyActionCallback) notification_playpause_cb,
 							plugin,
 							NULL);
-			notify_notification_set_hint_byte (notification,
-							   "action-icons",
-							   1);
+			notify_notification_set_hint (notification, "action-icons", g_variant_new_boolean (TRUE));
 		}
 
 		notify_notification_add_action (notification,
@@ -238,9 +236,7 @@ do_notify (RBNotificationPlugin *plugin,
 		} else {
 			hint = "transient";
 		}
-		notify_notification_set_hint_byte (notification,
-						   hint,
-						   1);
+		notify_notification_set_hint (notification, hint, g_variant_new_boolean (TRUE));
 	}
 
 	if (notify_notification_show (notification, &error) == FALSE) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]