[gtkmm] Gtk::Button: Deprecate the alignment API which is deprecated in GTK+



commit 6c4739b8842c428b40af16a9e741f0a2866b585e
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Sun Jun 1 15:43:43 2014 +0200

    Gtk::Button: Deprecate the alignment API which is deprecated in GTK+
    
    * gtk/src/button.hg: Deprecate set_alignment(), get_alignment(),
    property_xalign() and property_yalign(), which are deprecated in GTK+.

 gtk/src/button.hg |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/src/button.hg b/gtk/src/button.hg
index 7be2ea5..4e5b8ca 100644
--- a/gtk/src/button.hg
+++ b/gtk/src/button.hg
@@ -100,8 +100,8 @@ public:
   _WRAP_METHOD(void set_focus_on_click(bool focus_on_click = true), gtk_button_set_focus_on_click)
   _WRAP_METHOD(bool get_focus_on_click() const, gtk_button_get_focus_on_click)
 
-  _WRAP_METHOD(void set_alignment(float xalign, float yalign), gtk_button_set_alignment)
-  _WRAP_METHOD(void get_alignment(float& xalign, float& yalign), gtk_button_get_alignment)
+  _WRAP_METHOD(void set_alignment(float xalign, float yalign), gtk_button_set_alignment, deprecated "Access 
the child widget directly if you need to control its alignment.")
+  _WRAP_METHOD(void get_alignment(float& xalign, float& yalign), gtk_button_get_alignment, deprecated 
"Access the child widget directly if you need to control its alignment.")
 
   //TODO: When we can break ABI, combine the two set_image_from_icon_name() to
   // void set_image_from_icon_name(const Glib::ustring& icon_name, IconSize size = ICON_SIZE_BUTTON, bool 
use_fallback = false);
@@ -166,8 +166,8 @@ public:
   _WRAP_PROPERTY("use-underline", bool)
   _WRAP_PROPERTY("use-stock", bool, deprecated "No replacement available.")
   _WRAP_PROPERTY("focus-on-click", bool)
-  _WRAP_PROPERTY("xalign", float)
-  _WRAP_PROPERTY("yalign", float)
+  _WRAP_PROPERTY("xalign", float, deprecated "Access the child widget directly if you need to control its 
alignment.")
+  _WRAP_PROPERTY("yalign", float, deprecated "Access the child widget directly if you need to control its 
alignment.")
   _WRAP_PROPERTY("image", Gtk::Widget*)
   _WRAP_PROPERTY("image-position", PositionType)
   _WRAP_PROPERTY("always-show-image", bool)


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