[gtkmm] Dialog: Add new header bar management methods



commit fa2798ea3bd097094a7a61eeabe1e55e4907bef6
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Mon Feb 17 06:14:52 2014 +0100

    Dialog: Add new header bar management methods
    
        * Add getter/setter for HeaderBar widget
        * Add ::use-header-bar read-only property

 gtk/src/dialog.hg       |    7 +++++++
 tools/m4/convert_gtk.m4 |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/dialog.hg b/gtk/src/dialog.hg
index 52d3e69..ee3ff80 100644
--- a/gtk/src/dialog.hg
+++ b/gtk/src/dialog.hg
@@ -22,6 +22,7 @@
 #include <gtkmm/box.h>
 #include <gtkmm/button.h>
 #include <gtkmm/buttonbox.h>
+#include <gtkmm/headerbar.h>
 
 _DEFS(gtkmm,gtk)
 _PINCLUDE(gtkmm/private/window_p.h)
@@ -129,9 +130,15 @@ _DEPRECATE_IFDEF_END
   _WRAP_METHOD(Box* get_content_area(), gtk_dialog_get_content_area)
   _WRAP_METHOD(const Box* get_content_area() const, gtk_dialog_get_content_area, constversion)
 
+  _WRAP_METHOD(HeaderBar* get_header_bar(), gtk_dialog_get_header_bar) // transfer none
+  _WRAP_METHOD(const HeaderBar* get_header_bar() const, gtk_dialog_get_header_bar, constversion) // transfer 
none
+
+  _IGNORE(gtk_dialog_set_use_header_bar_from_setting) //A convenience helper for built-in dialogs
+
   _WRAP_SIGNAL(void response(int response_id), "response")
 
   //_WRAP_PROPERTY("has-separator", bool) //deprecated.
+  _WRAP_PROPERTY("use-header-bar", bool)
 
   _IGNORE_SIGNAL("close")
 };
diff --git a/tools/m4/convert_gtk.m4 b/tools/m4/convert_gtk.m4
index ae1e832..4965a9a 100644
--- a/tools/m4/convert_gtk.m4
+++ b/tools/m4/convert_gtk.m4
@@ -258,6 +258,7 @@ _CONVERSION(`GtkWidget*',`Container*',`Glib::wrap((GtkContainer*)($3))')
 _CONVERSION(`GtkWidget*',`const Container*',`Glib::wrap((GtkContainer*)($3))')
 _CONVERSION(`GtkWidget*',`Entry*',`Glib::wrap((GtkEntry*)($3))')
 _CONVERSION(`GtkWidget*',`FontSelection*',`Glib::wrap((GtkFontSelection*)($3))')
+_CONVERSION(`GtkWidget*',`HeaderBar*',`Glib::wrap((GtkHeaderBar*)($3))')
 _CONVERSION(`GtkWidget*',`Label*',`Glib::wrap((GtkLabel*)($3))')
 _CONVERSION(`GtkWidget*',`Menu*',`Glib::wrap((GtkMenu*)($3))')
 _CONVERSION(`GtkWidget*',`MenuItem*',`Glib::wrap((GtkMenuItem*)($3))')


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