[gtkmm] Popover: Add popup() and popupdown().



commit c6ebe803f011b8564dc769f1417196e120b9ef3e
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Aug 19 16:48:04 2016 +0200

    Popover: Add popup() and popupdown().
    
    Deprecating get/set_transitions_enabled().

 gtk/src/popover.hg |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtk/src/popover.hg b/gtk/src/popover.hg
index a409469..6162328 100644
--- a/gtk/src/popover.hg
+++ b/gtk/src/popover.hg
@@ -120,8 +120,8 @@ public:
 
   _WRAP_METHOD(void bind_model(const Glib::RefPtr<Gio::MenuModel>& model, const Glib::ustring& 
action_namespace{?}), gtk_popover_bind_model)
 
-  _WRAP_METHOD(void set_transitions_enabled(bool transitions_enabled = true), 
gtk_popover_set_transitions_enabled)
-  _WRAP_METHOD(bool get_transitions_enabled() const, gtk_popover_get_transitions_enabled)
+  _WRAP_METHOD(void set_transitions_enabled(bool transitions_enabled = true), 
gtk_popover_set_transitions_enabled, deprecated "You can show or hide the popover without transitions using 
show() and hide(), or with transitions using popup() and popdown().")
+  _WRAP_METHOD(bool get_transitions_enabled() const, gtk_popover_get_transitions_enabled, deprecated "See 
set_transitions_enabled().")
 
   _WRAP_METHOD(void set_default_widget(Widget& widget), gtk_popover_set_default_widget)
 
@@ -131,11 +131,14 @@ public:
   _WRAP_METHOD(void set_constrain_to(PopoverConstraint constraint), gtk_popover_set_constrain_to)
   _WRAP_METHOD(PopoverConstraint get_constrain_to() const, gtk_popover_get_constrain_to)
 
+  _WRAP_METHOD(void popup(), gtk_popover_popup)
+  _WRAP_METHOD(void popdown(), gtk_popover_popdown)
+
   _WRAP_PROPERTY("relative-to", Widget*)
   _WRAP_PROPERTY("pointing-to", Gdk::Rectangle)
   _WRAP_PROPERTY("position", PositionType)
   _WRAP_PROPERTY("modal", bool)
-  _WRAP_PROPERTY("transitions-enabled", bool)
+  _WRAP_PROPERTY("transitions-enabled", bool, deprecated "See set_transitions_enabled()")
   _WRAP_PROPERTY("constrain-to", PopoverConstraint)
 
   _WRAP_SIGNAL(void closed(), "closed")


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