[gtkmm] Gtk: Deprecate properties which are deprecated in gtk+



commit fb7300401bce5e16d3e2c163f2163878f7e6bbb0
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Fri Mar 11 16:40:35 2016 +0100

    Gtk: Deprecate properties which are deprecated in gtk+
    
    * gtk/src/cellrenderertoggle.hg: Deprecate property_indicator_size().
    * gtk/src/container.hg: Deprecate property_resize_mode().
    * gtk/src/entry.hg: Deprecate property_shadow_type().
    * gtk/src/expander.hg: Deprecate property_spacing().
    * gtk/src/stylecontext.hg: Deprecate property_direction().

 gtk/src/cellrenderertoggle.hg |    3 ++-
 gtk/src/container.hg          |    3 ++-
 gtk/src/entry.hg              |    3 ++-
 gtk/src/expander.hg           |    3 ++-
 gtk/src/stylecontext.hg       |    9 ++++++---
 5 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/gtk/src/cellrenderertoggle.hg b/gtk/src/cellrenderertoggle.hg
index 0d1b799..76b7528 100644
--- a/gtk/src/cellrenderertoggle.hg
+++ b/gtk/src/cellrenderertoggle.hg
@@ -54,7 +54,8 @@ public:
   _WRAP_PROPERTY("active", bool)
   _WRAP_PROPERTY("inconsistent", bool)
   _WRAP_PROPERTY("radio", bool)
-  _WRAP_PROPERTY("indicator-size", int)
+  _WRAP_PROPERTY("indicator-size", int,
+    deprecated "Use the min-width/min-height CSS properties of the check/radio node instead.")
 
   Glib::PropertyProxy_Base _property_renderable() override;
 };
diff --git a/gtk/src/container.hg b/gtk/src/container.hg
index e0e0bc8..679fc6a 100644
--- a/gtk/src/container.hg
+++ b/gtk/src/container.hg
@@ -259,7 +259,8 @@ protected:
   _WRAP_VFUNC(void get_child_property(GtkWidget* child, guint property_id, GValue* value, GParamSpec* pspec) 
const, get_child_property)
 
   _WRAP_PROPERTY("border_width", guint)
-  _WRAP_PROPERTY("resize_mode", ResizeMode)
+  _WRAP_PROPERTY("resize_mode", ResizeMode,
+    deprecated "Resize modes are deprecated. They aren’t necessary anymore since frame clocks and might 
introduce obscure bugs if used.")
   _WRAP_PROPERTY("child", Widget*)
 
 #m4begin
diff --git a/gtk/src/entry.hg b/gtk/src/entry.hg
index f90f196..adc61a6 100644
--- a/gtk/src/entry.hg
+++ b/gtk/src/entry.hg
@@ -259,7 +259,8 @@ public:
   _WRAP_PROPERTY("width-chars", int)
   _WRAP_PROPERTY("max-width-chars", int)
   _WRAP_PROPERTY("scroll-offset", int)
-  _WRAP_PROPERTY("shadow-type", ShadowType)
+  _WRAP_PROPERTY("shadow-type", ShadowType,
+    deprecated "This property is ignored. Use CSS to determine the style of the border.")
   _WRAP_PROPERTY("text", Glib::ustring)
   _WRAP_PROPERTY("xalign", float)
   _WRAP_PROPERTY("truncate-multiline", bool)
diff --git a/gtk/src/expander.hg b/gtk/src/expander.hg
index a4cf1ed..f3854ee 100644
--- a/gtk/src/expander.hg
+++ b/gtk/src/expander.hg
@@ -110,7 +110,8 @@ public:
   _WRAP_PROPERTY("label", Glib::ustring)
   _WRAP_PROPERTY("use_underline", bool)
   _WRAP_PROPERTY("use_markup", bool)
-  _WRAP_PROPERTY("spacing", int)
+  _WRAP_PROPERTY("spacing", int,
+    deprecated "This property is ignored. Use margins on the child instead.")
   _WRAP_PROPERTY("label_widget", Widget*)
   _WRAP_PROPERTY("label_fill", bool)
   _WRAP_PROPERTY("resize-toplevel", bool)
diff --git a/gtk/src/stylecontext.hg b/gtk/src/stylecontext.hg
index d29d69f..2f4cf9a 100644
--- a/gtk/src/stylecontext.hg
+++ b/gtk/src/stylecontext.hg
@@ -182,8 +182,10 @@ public:
   _WRAP_METHOD(Glib::RefPtr<Gdk::Screen> get_screen(), gtk_style_context_get_screen, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const Gdk::Screen> get_screen() const, gtk_style_context_get_screen, refreturn, 
constversion)
 
-  _WRAP_METHOD(void set_direction(TextDirection direction), gtk_style_context_set_direction, deprecated "Use 
set_state() with StateFlags::STATE_FLAG_DIR_LTR and StateFlags::STATE_FLAG_DIR_RTL instead.")
-  _WRAP_METHOD(TextDirection get_direction() const, gtk_style_context_get_direction, deprecated "Use 
get_state() and check for StateFlags::STATE_FLAG_DIR_LTR and StateFlags::STATE_FLAG_DIR_RTL instead.")
+  _WRAP_METHOD(void set_direction(TextDirection direction), gtk_style_context_set_direction,
+    deprecated "Use set_state() with Gtk::STATE_FLAG_DIR_LTR and Gtk::STATE_FLAG_DIR_RTL instead.")
+  _WRAP_METHOD(TextDirection get_direction() const, gtk_style_context_get_direction,
+    deprecated "Use get_state() and check for Gtk::STATE_FLAG_DIR_LTR and Gtk::STATE_FLAG_DIR_RTL instead.")
 
   _WRAP_METHOD(void set_junction_sides(JunctionSides sides), gtk_style_context_set_junction_sides)
   _WRAP_METHOD(JunctionSides get_junction_sides() const, gtk_style_context_get_junction_sides)
@@ -268,7 +270,8 @@ _DEPRECATE_IFDEF_END
   _WRAP_SIGNAL(void changed(), "changed")
 
   _WRAP_PROPERTY("screen", Glib::RefPtr<Gdk::Screen>)
-  _WRAP_PROPERTY("direction", TextDirection)
+  _WRAP_PROPERTY("direction", TextDirection,
+    deprecated "Use set_state()/get_state() and Gtk::STATE_FLAG_DIR_LTR/Gtk::STATE_FLAG_DIR_RTL instead.")
   _WRAP_PROPERTY("parent", Glib::RefPtr<StyleContext>)
 };
 


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