[nautilus-sendto] main: Update for deprecation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sendto] main: Update for deprecation
- Date: Wed, 14 Mar 2012 15:32:12 +0000 (UTC)
commit 6752e07c19b0c7184c4254a39824e29e316636b6
Author: Bastien Nocera <hadess hadess net>
Date: Wed Mar 14 15:19:08 2012 +0100
main: Update for deprecation
src/nautilus-sendto-command.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-sendto-command.c b/src/nautilus-sendto-command.c
index 241dce9..f4700c0 100644
--- a/src/nautilus-sendto-command.c
+++ b/src/nautilus-sendto-command.c
@@ -455,8 +455,11 @@ nautilus_sendto_create_ui (NautilusSendto *nst)
#ifdef GDK_WINDOWING_X11
if (xid != 0) {
GdkWindow *window;
+ GdkDisplayManager *manager;
+
gtk_widget_realize (nst->dialog);
- window = gdk_x11_window_foreign_new_for_display (gdk_display_get_default (), xid);
+ manager = gdk_display_manager_get ();
+ window = gdk_x11_window_foreign_new_for_display (gdk_display_manager_get_default_display (manager), xid);
gdk_window_set_transient_for (gtk_widget_get_window (nst->dialog),
window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]