[rhythmbox] dbus-media-server: fix object path formatting



commit c92be6e8ee97be5cb526817645dad50b1857d8c6
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Oct 10 21:11:31 2012 +1000

    dbus-media-server: fix object path formatting
    
    negative numbers don't work so well, so format things unsigned.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685565

 .../rb-dbus-media-server-plugin.c                  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
index 0dc60f0..28cd033 100644
--- a/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
+++ b/plugins/dbus-media-server/rb-dbus-media-server-plugin.c
@@ -2310,7 +2310,7 @@ display_page_inserted_cb (RBDisplayPageModel *model, RBDisplayPage *page, GtkTre
 
 			if (category_data->match_source (source)) {
 				char *dbus_path;
-				dbus_path = g_strdup_printf ("%s/%" G_GINTPTR_FORMAT,
+				dbus_path = g_strdup_printf ("%s/%" G_GINTPTR_MODIFIER "u",
 							     category_data->dbus_path,
 							     (gintptr) source);
 				rb_debug ("adding new source %s to category %s", dbus_path, category_data->name);



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