[gtkmm] Wrap new symbols added to GtkHeaderBar as of 3.12



commit 88a3581ab108c75d042a5ddb6a5edc4937886a30
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Wed Jan 29 22:23:29 2014 +0100

    Wrap new symbols added to GtkHeaderBar as of 3.12
    
    * gtk/src/headerbar.[hg|ccg]:
      Added decoration-layout object property,
      decoration-layout-set object property,
      has-subtitle object property,
      get_decoration_layout(), get_has_subtitle(),
      set_decoration_layout(), set_has_subtitle().

 gtk/src/headerbar.ccg |    6 ++++++
 gtk/src/headerbar.hg  |   21 ++++++++++++++++++---
 2 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/gtk/src/headerbar.ccg b/gtk/src/headerbar.ccg
index 0b15ffe..42828a5 100644
--- a/gtk/src/headerbar.ccg
+++ b/gtk/src/headerbar.ccg
@@ -21,5 +21,11 @@
 
 namespace Gtk
 {
+
+void HeaderBar::unset_decoration_layout()
+{
+  gtk_header_bar_set_decoration_layout(gobj(), NULL);
+}
+
 } // namespace Gtk
 
diff --git a/gtk/src/headerbar.hg b/gtk/src/headerbar.hg
index bbdac56..b533fe8 100644
--- a/gtk/src/headerbar.hg
+++ b/gtk/src/headerbar.hg
@@ -31,7 +31,7 @@ namespace Gtk
  * centered with respect to the width of the box, even if the children
  * at either side take up different amounts of space.
  *
- * @ingroup Widgets
+ * @ingroup Containers
  * @newin{3,10}
  */
 class HeaderBar
@@ -51,6 +51,9 @@ public:
   _WRAP_METHOD(void set_subtitle(const Glib::ustring& subtitle), gtk_header_bar_set_subtitle)
   _WRAP_METHOD(Glib::ustring get_subtitle() const, gtk_header_bar_get_subtitle)
 
+  _WRAP_METHOD(void set_has_subtitle(bool setting = true), gtk_header_bar_set_has_subtitle)
+  _WRAP_METHOD(bool get_has_subtitle() const, gtk_header_bar_get_has_subtitle)
+
   _WRAP_METHOD(void set_custom_title(Gtk::Widget& title_widget), gtk_header_bar_set_custom_title)
   _WRAP_METHOD(Widget* get_custom_title(), gtk_header_bar_get_custom_title)
   _WRAP_METHOD(const Widget* get_custom_title() const, gtk_header_bar_get_custom_title, constversion)
@@ -58,17 +61,29 @@ public:
   _WRAP_METHOD(void pack_start(Gtk::Widget& child), gtk_header_bar_pack_start)
   _WRAP_METHOD(void pack_end(Gtk::Widget& child), gtk_header_bar_pack_end)
 
-  _WRAP_METHOD(void set_show_close_button(bool settings = true), gtk_header_bar_set_show_close_button)
+  _WRAP_METHOD(void set_show_close_button(bool setting = true), gtk_header_bar_set_show_close_button)
   _WRAP_METHOD(bool get_show_close_button() const, gtk_header_bar_get_show_close_button)
 
+  _WRAP_METHOD(void set_decoration_layout(const Glib::ustring& layout), gtk_header_bar_set_decoration_layout)
+  
+  /** Unset the decoration layout.
+   * See set_decoration_layout().
+   */
+  void unset_decoration_layout();
+
+  _WRAP_METHOD(Glib::ustring get_decoration_layout() const, gtk_header_bar_get_decoration_layout)
+
 
   _WRAP_PROPERTY("custom-title", Gtk::Widget*)
   _WRAP_PROPERTY("show-close-button", bool)
   _WRAP_PROPERTY("spacing", int)
   _WRAP_PROPERTY("subtitle", Glib::ustring)
   _WRAP_PROPERTY("title", Glib::ustring)
+  _WRAP_PROPERTY("decoration-layout", Glib::ustring)
+  _WRAP_PROPERTY("decoration-layout-set", bool)
+  _WRAP_PROPERTY("has-subtitle", bool)
 
-  // Gtk::HeaderBar has no signals nor vfuncs as of 3.10.
+  // Gtk::HeaderBar has no signals nor vfuncs as of 3.12.
 };
 
 } // namespace Gtk


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