[Rhythmbox-devel] Mini patches for compilation



Hi Oliver,
a couple of patches to get rhythmbox--merge--0.9 to compile on my (Ubuntu breezy amd64) system.

The first one I guess is an oversight:

--- shell/rb-shell.c~ 2005-05-10 10:20:26.000000000 +0200
+++ shell/rb-shell.c  2005-05-10 10:20:26.000000000 +0200
@@ -1019,7 +1019,7 @@
#endif


-       shell->priv->sourcelist = rb_sourcelist_new (shell);
+       shell->priv->sourcelist = rb_sourcelist_new ();
        g_signal_connect_object (G_OBJECT (shell->priv->sourcelist), "drop_received",
                                 G_CALLBACK (sourcelist_drag_received_cb), shell, 0);
        g_signal_connect_object (G_OBJECT (shell->priv->sourcelist), "source_activated",


The second one has to do with the size of pointers on an amd64 system (long int instead of int).

--- widgets/rb-header.c~        2005-05-10 10:17:54.000000000 +0200
+++ widgets/rb-header.c 2005-05-10 10:17:54.000000000 +0200
@@ -474,7 +474,7 @@
        } else if (g_str_has_prefix (data, "www.")) {
                char *end = strchr (data, ' ');
                if (end != NULL)
-                       ret = g_strdup_printf ("http://%*s", end-data, data);
+                       ret = g_strdup_printf ("http://%*s", (int)(end-data), data);
                else
                        ret = g_strdup_printf ("http://%s", data);
        } else {



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