[gtk+] widget: Deprecate gtk_widget_get_pointer ()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Deprecate gtk_widget_get_pointer ()
- Date: Tue, 8 Nov 2011 20:23:41 +0000 (UTC)
commit d41732b72977f31226d762c52e2e707feefd9ea6
Author: Benjamin Otte <otte redhat com>
Date: Tue Nov 8 16:52:19 2011 +0100
widget: Deprecate gtk_widget_get_pointer ()
gtk/gtkwidget.c | 2 ++
gtk/gtkwidget.h | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 49e28fb..e3e3f45 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -9755,6 +9755,8 @@ gtk_widget_get_device_events (GtkWidget *widget,
* defined as @widget->window coordinates for widgets that are not
* #GTK_NO_WINDOW widgets, and are relative to @widget->allocation.x,
* @widget->allocation.y for widgets that are #GTK_NO_WINDOW widgets.
+ *
+ * Deprecated: 3.4: Use gdk_window_get_device_positon() instead.
**/
void
gtk_widget_get_pointer (GtkWidget *widget,
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 828fa85..387cb0d 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -752,6 +752,7 @@ void gtk_widget_set_margin_bottom (GtkWidget *widget,
gint gtk_widget_get_events (GtkWidget *widget);
GdkEventMask gtk_widget_get_device_events (GtkWidget *widget,
GdkDevice *device);
+GDK_DEPRECATED_FOR(gdk_window_get_device_position)
void gtk_widget_get_pointer (GtkWidget *widget,
gint *x,
gint *y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]