[gnome-color-manager] Fix GTK3 compile by using gdk_error_trap_pop_ignored()



commit 82d2e82a06b5c393873c9cdbaf4d8cb5072952e1
Author: Richard Hughes <richard hughsie com>
Date:   Mon Oct 4 13:50:32 2010 +0100

    Fix GTK3 compile by using gdk_error_trap_pop_ignored()

 libcolor-glib/gcm-x11-output.c |    2 +-
 libcolor-glib/gcm-x11-screen.c |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libcolor-glib/gcm-x11-output.c b/libcolor-glib/gcm-x11-output.c
index 6c72727..66b684e 100644
--- a/libcolor-glib/gcm-x11-output.c
+++ b/libcolor-glib/gcm-x11-output.c
@@ -569,7 +569,7 @@ gcm_x11_output_get_profile_data (GcmX11Output *output, guint8 **data, gsize *len
 				   AnyPropertyType, &type, &format, &nitems, &bytes_after,
 				   (unsigned char **) &data_tmp);
 	egg_debug ("got %i bytes", (guint) nitems);
-	gdk_error_trap_pop ();
+	gdk_error_trap_pop_ignored ();
 
 	/* did the call fail */
 	if (rc != Success) {
diff --git a/libcolor-glib/gcm-x11-screen.c b/libcolor-glib/gcm-x11-screen.c
index a85022c..a5845a0 100644
--- a/libcolor-glib/gcm-x11-screen.c
+++ b/libcolor-glib/gcm-x11-screen.c
@@ -369,7 +369,7 @@ gcm_x11_screen_get_profile_data (GcmX11Screen *screen, guint8 **data, gsize *len
 	atom = XInternAtom (priv->xdisplay, "_ICC_PROFILE", FALSE);
 	rc = XGetWindowProperty (priv->xdisplay, priv->xroot, atom, 0, G_MAXLONG, False, XA_CARDINAL,
 				 &type, &format, &nitems, &bytes_after, (void*) &data_tmp);
-	gdk_error_trap_pop ();
+	gdk_error_trap_pop_ignored ();
 
 	/* did the call fail */
 	if (rc != Success) {
@@ -465,7 +465,7 @@ gcm_x11_screen_set_profile_data (GcmX11Screen *screen, const guint8 *data, gsize
 	gdk_error_trap_push ();
 	atom = XInternAtom (priv->xdisplay, "_ICC_PROFILE", FALSE);
 	rc = XChangeProperty (priv->xdisplay, priv->xroot, atom, XA_CARDINAL, 8, PropModeReplace, (unsigned char*) data, length);
-	gdk_error_trap_pop ();
+	gdk_error_trap_pop_ignored ();
 
 	/* for some reason this fails with BadRequest, but actually sets the value */
 	if (rc == BadRequest)
@@ -514,7 +514,7 @@ gcm_x11_screen_set_protocol_version (GcmX11Screen *screen, guint major, guint mi
 	gdk_error_trap_push ();
 	atom = XInternAtom (priv->xdisplay, "_ICC_PROFILE_IN_X_VERSION", FALSE);
 	rc = XChangeProperty (priv->xdisplay, priv->xroot, atom, XA_CARDINAL, 8, PropModeReplace, (unsigned char*) &data, 1);
-	gdk_error_trap_pop ();
+	gdk_error_trap_pop_ignored ();
 
 	/* for some reason this fails with BadRequest, but actually sets the value */
 	if (rc == BadRequest)
@@ -559,7 +559,7 @@ gcm_x11_screen_remove_protocol_version (GcmX11Screen *screen, GError **error)
 	gdk_error_trap_push ();
 	atom = XInternAtom (priv->xdisplay, "_ICC_PROFILE_IN_X_VERSION", FALSE);
 	rc = XDeleteProperty(priv->xdisplay, priv->xroot, atom);
-	gdk_error_trap_pop ();
+	gdk_error_trap_pop_ignored ();
 
 	/* this fails with BadRequest if the atom was not set */
 	if (rc == BadRequest)
@@ -610,7 +610,7 @@ gcm_x11_screen_get_protocol_version (GcmX11Screen *screen, guint *major, guint *
 	atom = XInternAtom (priv->xdisplay, "_ICC_PROFILE_IN_X_VERSION", FALSE);
 	rc = XGetWindowProperty (priv->xdisplay, priv->xroot, atom, 0, G_MAXLONG, False, XA_CARDINAL,
 				 &type, &format, &nitems, &bytes_after, (unsigned char **) &data_tmp);
-	gdk_error_trap_pop ();
+	gdk_error_trap_pop_ignored ();
 
 	/* did the call fail */
 	if (rc != Success) {
@@ -663,7 +663,7 @@ gcm_x11_screen_remove_profile (GcmX11Screen *screen, GError **error)
 	gdk_error_trap_push ();
 	atom = XInternAtom (priv->xdisplay, "_ICC_PROFILE", FALSE);
 	rc = XDeleteProperty (priv->xdisplay, priv->xroot, atom);
-	gdk_error_trap_pop ();
+	gdk_error_trap_pop_ignored ();
 
 	/* this fails with BadRequest if the atom was not set */
 	if (rc == BadRequest)



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