[gtkmm] Gtk::Popover::pointing-to changed type



commit 494e3801e2f62b9c9063a7f38c18c9556c0d324e
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Sun Feb 9 21:01:47 2014 +0100

    Gtk::Popover::pointing-to changed type
    
        * GtkPopover::pointing-to changed its type from
        * cairo_rectangle_int_to to GdkRectangle.

 gtk/src/gtk_methods.defs |    4 ++--
 gtk/src/popover.hg       |   11 +++++------
 2 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/gtk/src/gtk_methods.defs b/gtk/src/gtk_methods.defs
index f0d8d71..4489817 100644
--- a/gtk/src/gtk_methods.defs
+++ b/gtk/src/gtk_methods.defs
@@ -18724,7 +18724,7 @@
   (c-name "gtk_popover_set_pointing_to")
   (return-type "none")
   (parameters
-    '("cairo_rectangle_int_t*" "rect")
+    '("const-GdkRectangle*" "rect")
   )
 )
 
@@ -18733,7 +18733,7 @@
   (c-name "gtk_popover_get_pointing_to")
   (return-type "gboolean")
   (parameters
-    '("cairo_rectangle_int_t*" "rect")
+    '("GdkRectangle*" "rect")
   )
 )
 
diff --git a/gtk/src/popover.hg b/gtk/src/popover.hg
index e852c8e..e6d8d1c 100644
--- a/gtk/src/popover.hg
+++ b/gtk/src/popover.hg
@@ -65,12 +65,11 @@ public:
   _WRAP_METHOD(Widget* get_relative_to(), gtk_popover_get_relative_to)
   _WRAP_METHOD(const Widget* get_relative_to() const, gtk_popover_get_relative_to, constversion)
 
-#m4 _CONVERSION(`const Cairo::RectangleInt&',`cairo_rectangle_int_t*', 
`const_cast<cairo_rectangle_int_t*>(&($3))')
   //This cannot take NULL to mean unset.
-  _WRAP_METHOD(void set_pointing_to(const Cairo::RectangleInt& rect), gtk_popover_set_pointing_to)
-
-#m4 _CONVERSION(`Cairo::RectangleInt&',`cairo_rectangle_int_t*', `&($3)')
-  _WRAP_METHOD(bool get_pointing_to(Cairo::RectangleInt& rect) const, gtk_popover_get_pointing_to)
+#m4 _CONVERSION(`const GdkRectangle*',`const Gdk::Rectangle&',`Glib::wrap($3)')
+  _WRAP_METHOD(void set_pointing_to(const Gdk::Rectangle& rect), gtk_popover_set_pointing_to)
+#m4 _CONVERSION(`GdkRectangle*',`Gdk::Rectangle&',`Glib::wrap($3)')
+  _WRAP_METHOD(bool get_pointing_to(Gdk::Rectangle& rect) const, gtk_popover_get_pointing_to)
 
   _WRAP_METHOD(void set_position(PositionType position = POS_TOP), gtk_popover_set_position)
   _WRAP_METHOD(PositionType get_position() const, gtk_popover_get_position)
@@ -81,7 +80,7 @@ public:
 
   _WRAP_PROPERTY("relative-to", Widget*)
 // TODO
-//  _WRAP_PROPERTY("pointing-to", Cairo::RectangleInt)
+//  _WRAP_PROPERTY("pointing-to", Gdk::Rectangle)
   _WRAP_PROPERTY("position", PositionType)
   _WRAP_PROPERTY("modal", bool)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]