[gnome-packagekit] Don't compile with GDK_MULTIHEAD_SAFE as it breaks ca_gtk_context_get with a new libcanberra-gtk



commit de956ee8df6e7514abcf5896bef8ad964ac81368
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 25 12:42:16 2009 +0100

    Don't compile with GDK_MULTIHEAD_SAFE as it breaks ca_gtk_context_get with a new libcanberra-gtk

 configure.ac            |    2 +-
 src/gpk-check-update.c  |    2 ++
 src/gpk-update-viewer.c |    2 ++
 3 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9f0eadb..9347750 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ dnl ---------------------------------------------------------------------------
 if test "$GCC" = "yes"; then
 #	CPPFLAGS="$CPPFLAGS -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES"
 	CPPFLAGS="$CPPFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"
-	CPPFLAGS="$CPPFLAGS -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE"
+#	CPPFLAGS="$CPPFLAGS -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE"
 	CPPFLAGS="$CPPFLAGS -DGSEAL_ENABLE"
 	CPPFLAGS="$CPPFLAGS -Wall -Wreturn-type"
 	CPPFLAGS="$CPPFLAGS -Werror"
diff --git a/src/gpk-check-update.c b/src/gpk-check-update.c
index ca12de8..51b8099 100644
--- a/src/gpk-check-update.c
+++ b/src/gpk-check-update.c
@@ -923,6 +923,8 @@ gpk_check_update_process_updates (GpkCheckUpdate *cupdate, PkPackageList *list,
 	if (update == GPK_UPDATE_ENUM_NONE) {
 		egg_debug ("not updating as policy NONE");
 
+		/* TODO: use ca_gtk_context_get_for_screen to allow use of GDK_MULTIHEAD_SAFE */
+
 		/* play the sound, using sounds from the naming spec */
 		ca_context_play (ca_gtk_context_get (), 0,
 				 /* TODO: add a new sound to the spec */
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 87786e7..5c654bb 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -1823,6 +1823,8 @@ gpk_update_viewer_finished_cb (PkClient *client, PkExitEnum exit, guint runtime,
 	    (role == PK_ROLE_ENUM_UPDATE_SYSTEM ||
 	     role == PK_ROLE_ENUM_UPDATE_PACKAGES)) {
 
+		/* TODO: use ca_gtk_context_get_for_screen to allow use of GDK_MULTIHEAD_SAFE */
+
 		/* play the sound, using sounds from the naming spec */
 		ca_context_play (ca_gtk_context_get (), 0,
 				 /* TODO: add a new sound to the spec */



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