[gnome-screensaver] Adapt to recent GTK+ changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Adapt to recent GTK+ changes
- Date: Wed, 22 Dec 2010 15:14:39 +0000 (UTC)
commit ff050848d8f04bb0daecdf16800fd58a6adb401e
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 22 10:13:02 2010 -0500
Adapt to recent GTK+ changes
Use gdk_x11_window_foreign_new_for_display instead of gdk_window_foreign_new.
savers/gs-theme-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/savers/gs-theme-window.c b/savers/gs-theme-window.c
index e0e9aed..5416ce0 100644
--- a/savers/gs-theme-window.c
+++ b/savers/gs-theme-window.c
@@ -136,7 +136,7 @@ gs_theme_window_real_realize (GtkWidget *widget)
if ((remote_xwindow != 0) && (end != NULL) &&
((*end == ' ') || (*end == '\0')) &&
((remote_xwindow < G_MAXULONG) || (errno != ERANGE))) {
- window = gdk_window_foreign_new (remote_xwindow);
+ window = gdk_x11_window_foreign_new_for_display (gtk_widget_get_display (widget), remote_xwindow);
if (window != NULL) {
/* This is a kludge; we need to set the same
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]