[gtkmm] Gtk::Widget: Deprecate get_pointer().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::Widget: Deprecate get_pointer().
- Date: Fri, 18 Nov 2011 11:27:54 +0000 (UTC)
commit 5d2c0bc95ecbba888650c6df6944e901ff5affc8
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Nov 18 12:27:47 2011 +0100
Gtk::Widget: Deprecate get_pointer().
* gtk/src/widget.hg: And fix the build with the latest GTK+.
ChangeLog | 6 ++++++
gtk/src/widget.hg | 7 ++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cf34d54..aedac9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-11-18 Murray Cumming <murrayc murrayc com>
+
+ Gtk::Widget: Deprecate get_pointer().
+
+ * gtk/src/widget.hg: And fix the build with the latest GTK+.
+
2011-11-16 Hub FiguiÃre <hub figuiere net>
Fix namespacing for Cairo (Closes: #663303)
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index f0f501d..259240b 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -47,6 +47,11 @@ _CONFIGINCLUDE(gtkmmconfig.h)
_DEFS(gtkmm,gtk)
_PINCLUDE(gtkmm/private/object_p.h)
+#m4 _PUSH(SECTION_CC_PRE_INCLUDES)
+#undef GTK_DISABLE_DEPRECATED
+#define GDK_DISABLE_DEPRECATION_WARNINGS 1
+#m4 _POP()
+
#ifndef DOXYGEN_SHOULD_SKIP_THIS
extern "C"
@@ -353,7 +358,7 @@ public:
_WRAP_METHOD(Gdk::EventMask get_events() const, gtk_widget_get_events)
_WRAP_METHOD(Gdk::EventMask get_device_events(const Glib::RefPtr<const Gdk::Device>& device) const, gtk_widget_get_device_events)
- _WRAP_METHOD(void get_pointer(int &x, int &y) const, gtk_widget_get_pointer)
+ _WRAP_METHOD(void get_pointer(int &x, int &y) const, gtk_widget_get_pointer, deprecated "Use Gdk::Window::get_device_position instead.")
_WRAP_METHOD(bool is_ancestor(Widget &ancestor) const, gtk_widget_is_ancestor)
_WRAP_METHOD(bool translate_coordinates(Widget& dest_widget,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]