[gtkmm] Gtk::Object docs: Don't mention Adjustment



commit 281447322676475f4f54e515af734d86ac043b7e
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Mon Oct 16 13:50:03 2017 +0200

    Gtk::Object docs: Don't mention Adjustment
    
    Adjustment does not inherit from Gtk::Object. CellRenderer does.
    Remove the typedef'ed dont_allow_use_in_glib_refptr_. It lost its meaning
    when Glib::RefPtr became a std::shared_ptr.

 gtk/gtkmm/object.h |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkmm/object.h b/gtk/gtkmm/object.h
index 0454147..e4f4ba3 100644
--- a/gtk/gtkmm/object.h
+++ b/gtk/gtkmm/object.h
@@ -44,15 +44,18 @@ T* manage(T* obj)
   return obj;
 }
 
-/** Gtk::Object is the base class for all widgets, and for a few non-widget objects such as
- * Gtk::Adjustment. Gtk::Object predates Glib::Object; non-widgets that derive from Gtk::Object
+/** %Gtk::Object is the base class for all widgets, and for a few non-widget objects
+ * such as Gtk::CellRenderer.
+ *
+ * %Gtk::Object predates Glib::Object; non-widgets that derive from %Gtk::Object
  * rather than Glib::Object do so for backward compatibility reasons.
  *
- * The most interesting difference between Gtk::Object and Glib::Object is the ability to use Gtk::manage() 
to delegate memory management to the container widget. Gtk::Objects can also be
- * explicitly deleted at any time, instead of using only reference-counting, and container widgets
- * can respond when their child objects are being deleted (for instance by removing the widget).
+ * The most interesting difference between %Gtk::Object and Glib::Object is the ability
+ * to use Gtk::manage() to delegate memory management to the container widget.
+ * Gtk::Objects can also be explicitly deleted at any time, instead of using only
+ * reference-counting, and container widgets can respond when their child objects
+ * are being deleted (for instance by removing the widget).
  */
-
 class GTKMM_API Object : public Glib::Object
 {
   public:
@@ -63,14 +66,6 @@ class GTKMM_API Object : public Glib::Object
   typedef GObjectClass BaseClassType;
 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
 
-#ifdef GTKMM_DISABLE_DEPRECATED
-  /** This prevents use of Gtk::Object-derived classes with RefPtr.
-   * RefPtr should only be used with classes that have create() methods
-   * that return RefPtr.
-   */
-  typedef int dont_allow_use_in_glib_refptr_;
-#endif
-
   Object(Object&& src) noexcept;
   Object& operator=(Object&& src) noexcept;
 


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