[gtkmm/gtkmm-3-22] Gtk::Frame: Fix the documentation of set_label_align()



commit bf7dde5401f903c64af039a3b5de30ba897e8094
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Mon Nov 21 19:06:24 2016 +0100

    Gtk::Frame: Fix the documentation of set_label_align()
    
    Bug 774249

 gtk/src/frame.hg |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/gtk/src/frame.hg b/gtk/src/frame.hg
index cf33e7e..d76db3c 100644
--- a/gtk/src/frame.hg
+++ b/gtk/src/frame.hg
@@ -58,13 +58,18 @@ public:
   _WRAP_METHOD(Widget* get_label_widget(), gtk_frame_get_label_widget)
   _WRAP_METHOD(const Widget* get_label_widget() const, gtk_frame_get_label_widget, constversion)
 
-  /** Set the alignment of the Frame's label.
-   * @param xalign The position of the label along the top edge of the widget.
-   * A value of 0.0 represents left alignment; 1.0 represents right alignment.
-   * The default value for a newly created Frame is 0.0.
-   * @param yalign The y alignment of the label. Currently ignored.
-   */
   _WRAP_METHOD(void set_label_align(float xalign = 0.0, float yalign = 0.5), gtk_frame_set_label_align)
+  /** Sets the alignment of the frame widget’s label. The
+   * default values for a newly created frame are Gtk::ALIGN_START and Gtk::ALIGN_CENTER.
+   *
+   * @param xalign The position of the label along the top edge
+   * of the widget. A value of Gtk::ALIGN_START represents left alignment;
+   * Gtk::ALIGN_END represents right alignment.
+   * @param yalign The y alignment of the label. A value of Gtk::ALIGN_START aligns under
+   * the frame; Gtk::ALIGN_END aligns above the frame. If the values are
+   * Gtk::ALIGN_START or Gtk::ALIGN_END the gap in the frame won’t be painted because the label
+   * will be completely above or below the frame.
+   */
   _WRAP_METHOD(void set_label_align(Align xalign, Align yalign = Gtk::ALIGN_CENTER), 
gtk_frame_set_label_align)
 
   _WRAP_METHOD(void get_label_align(float& xalign, float& yalign) const, gtk_frame_get_label_align)
@@ -77,7 +82,6 @@ public:
   _WRAP_PROPERTY("label", Glib::ustring)
   _WRAP_PROPERTY("label-xalign", double)
   _WRAP_PROPERTY("label-yalign", double)
-  //deprecated: _WRAP_PROPERTY("shadow", ShadowType)
   _WRAP_PROPERTY("shadow-type", ShadowType)
   _WRAP_PROPERTY("label-widget", Widget*)
 


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