Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
gnome-color-manager
Commits
82d2e82a
Commit
82d2e82a
authored
Oct 04, 2010
by
Richard Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GTK3 compile by using gdk_error_trap_pop_ignored()
parent
ca040265
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
libcolor-glib/gcm-x11-output.c
libcolor-glib/gcm-x11-output.c
+1
-1
libcolor-glib/gcm-x11-screen.c
libcolor-glib/gcm-x11-screen.c
+6
-6
No files found.
libcolor-glib/gcm-x11-output.c
View file @
82d2e82a
...
...
@@ -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
)
{
...
...
libcolor-glib/gcm-x11-screen.c
View file @
82d2e82a
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment