[gtk+] notebook: Use nondeprecated API to query coordinates
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: Use nondeprecated API to query coordinates
- Date: Mon, 27 Dec 2010 01:09:53 +0000 (UTC)
commit a5f493bfad139a936086b1732f281b9e36db5bc9
Author: Benjamin Otte <otte redhat com>
Date: Mon Dec 27 00:50:30 2010 +0100
notebook: Use nondeprecated API to query coordinates
gtk/gtknotebook.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 062f337..ee8f451 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3596,7 +3596,9 @@ gtk_notebook_drag_failed (GtkWidget *widget,
gint x, y;
display = gtk_widget_get_display (widget);
- gdk_display_get_pointer (display, NULL, &x, &y, NULL);
+ gdk_display_get_device_state (gtk_widget_get_display (widget),
+ gdk_drag_context_get_device (context),
+ NULL, &x, &y, NULL);
g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0,
priv->detached_tab->child, x, y, &dest_notebook);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]