[Spice-commits] gtk/Makefile.am gtk/map-file

Hans de Goede jwrdegoede at kemper.freedesktop.org
Fri Feb 24 07:39:41 PST 2012


 gtk/Makefile.am |    1 -
 gtk/map-file    |    1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 919af70d78720d09ca7641e5292875199c768e23
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Fri Feb 24 16:10:50 2012 +0100

    buildsys: Don't link glib-compat.o into libspice-client-gtk.so
    
    glib-compat.c was added to SPICE_GTK_SOURCES_COMMON since with the
    new SpiceUsbDeviceWidget libspice-client-gtk now also uses G_TYPE_ERROR
    and when compiling with an older glib this gets defined in glib-compat.o
    
    However doing this turns out to be a very BAD idea, since having
    glib-compat.o linked into 2 different libraries, each defining there
    own private spice_error_get_type, leads to the "GError" type getting
    registered twice with glib, which it does not like.
    
    So instead of linking glib-compat into 2 different libraries, put it only
    in libspice-client-glib and export spice_error_get_type from
    libspice-client-glib (this is ofcourse intended for libspice-client-gtk
    private use only).
    
    Signed-off-by: Hans de Goede <hdegoede at redhat.com>

diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 7b2211d..29c7fb5 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -102,7 +102,6 @@ SPICE_GTK_LIBADD_COMMON =		\
 	$(NULL)
 
 SPICE_GTK_SOURCES_COMMON =		\
-	glib-compat.c			\
 	glib-compat.h			\
 	spice-gtk-session.c		\
 	spice-gtk-session-priv.h	\
diff --git a/gtk/map-file b/gtk/map-file
index 81cd682..32ead37 100644
--- a/gtk/map-file
+++ b/gtk/map-file
@@ -27,6 +27,7 @@ spice_display_new;
 spice_display_paste_from_guest;
 spice_display_send_keys;
 spice_display_set_grab_keys;
+spice_error_get_type;
 spice_get_option_group;
 spice_grab_sequence_as_string;
 spice_grab_sequence_copy;


More information about the Spice-commits mailing list