[gtkmm] Gtk::Range, ScaleButton: Use RefPtr<Adjustment> consistently



commit dccc97af91759d0f8b69d6c6d539b73cf4633213
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Fri Jul 21 16:59:17 2017 +0200

    Gtk::Range, ScaleButton: Use RefPtr<Adjustment> consistently
    
    Don't use Adjustment* in property_adjustment().

 gtk/src/range.hg       |    2 +-
 gtk/src/scalebutton.hg |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/src/range.hg b/gtk/src/range.hg
index a832b3c..ed1522b 100644
--- a/gtk/src/range.hg
+++ b/gtk/src/range.hg
@@ -89,7 +89,7 @@ public:
   _WRAP_SIGNAL(void move_slider(ScrollType scroll), "move_slider")
   _WRAP_SIGNAL(bool change_value(ScrollType scroll, double new_value), "change_value")
 
-  _WRAP_PROPERTY("adjustment", Adjustment*)
+  _WRAP_PROPERTY("adjustment", Glib::RefPtr<Adjustment>)
   _WRAP_PROPERTY("inverted", bool)
   _WRAP_PROPERTY("show-fill-level", bool)
   _WRAP_PROPERTY("restrict-to-fill-level", bool)
diff --git a/gtk/src/scalebutton.hg b/gtk/src/scalebutton.hg
index 126c3a4..e93ef01 100644
--- a/gtk/src/scalebutton.hg
+++ b/gtk/src/scalebutton.hg
@@ -100,7 +100,7 @@ public:
 
   _WRAP_PROPERTY("value", double)
   _WRAP_PROPERTY("size", IconSize)
-  _WRAP_PROPERTY("adjustment", Adjustment*)
+  _WRAP_PROPERTY("adjustment", Glib::RefPtr<Adjustment>)
   _WRAP_PROPERTY("icons", std::vector<Glib::ustring>)
 };
 


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