[empathy] empathy-avatar-image: don't use gdk_display global
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy-avatar-image: don't use gdk_display global
- Date: Tue, 28 Sep 2010 08:34:12 +0000 (UTC)
commit 8031eb1f58dff35e0deb3b01f80d75b6dce16454
Author: Diego Escalante Urrelo <descalante igalia com>
Date: Sun Sep 19 18:06:27 2010 -0500
empathy-avatar-image: don't use gdk_display global
This is deprecated for GTK+ 2.22.
Bug #630107
libempathy-gtk/empathy-avatar-image.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-avatar-image.c b/libempathy-gtk/empathy-avatar-image.c
index cfc73b7..c74557f 100644
--- a/libempathy-gtk/empathy-avatar-image.c
+++ b/libempathy-gtk/empathy-avatar-image.c
@@ -160,11 +160,11 @@ avatar_image_add_filter (EmpathyAvatarImage *avatar_image)
gdk_error_trap_push ();
if (gdkwindow) {
XWindowAttributes attrs;
- XGetWindowAttributes (gdk_display, window, &attrs);
+ XGetWindowAttributes (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), window, &attrs);
mask |= attrs.your_event_mask;
}
- XSelectInput (gdk_display, window, mask);
+ XSelectInput (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), window, mask);
gdk_error_trap_pop ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]