[gtkmm] Add some new methods and properties.



commit b5066031d0859dee87ea218af0dd07da066e53d8
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Jul 21 10:06:36 2011 +0200

    Add some new methods and properties.
    
    * gtk/src/buttonbox.hg: Added get_child_non_homogeneous() and
    set_child_non_homogeneous().
    * gtk/src/cssprovider.hg: Added to_string(),
    * gtk/src/entry.hg: Added get_placeholder_text(), set_placeholder_text(),
    and placeholder-text property.
    * gtk/src/expander.hg: Added set_resize_toplevel(), get_resize_toplevel()
    and resize-toplevel property.
    * gtk/src/treeviewcolumn.hg: Added get_x_offset() and cell-area property.
    * gtk/src/gtk_extra_objects.defs: Mention AppChooser and RecentChooser to
    improve the generated documentation.

 ChangeLog                      |   15 +++++++++++++++
 gtk/src/buttonbox.hg           |    4 +++-
 gtk/src/cssprovider.hg         |    2 ++
 gtk/src/entry.hg               |    4 ++++
 gtk/src/expander.hg            |    4 ++++
 gtk/src/gtk_extra_objects.defs |   12 ++++++++++++
 gtk/src/stylecontext.hg        |    7 +++++++
 gtk/src/treeviewcolumn.hg      |    2 ++
 8 files changed, 49 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 30f3ea1..9bdc65f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2011-07-21  Murray Cumming  <murrayc murrayc com>
 
+	Add some new methods and properties.
+
+	* gtk/src/buttonbox.hg: Added get_child_non_homogeneous() and
+	set_child_non_homogeneous().
+	* gtk/src/cssprovider.hg: Added to_string(), 
+	* gtk/src/entry.hg: Added get_placeholder_text(), set_placeholder_text(),
+	and placeholder-text property.
+	* gtk/src/expander.hg: Added set_resize_toplevel(), get_resize_toplevel() 
+	and resize-toplevel property.
+	* gtk/src/treeviewcolumn.hg: Added get_x_offset() and cell-area property.
+	* gtk/src/gtk_extra_objects.defs: Mention AppChooser and RecentChooser to 
+	improve the generated documentation.
+
+2011-07-21  Murray Cumming  <murrayc murrayc com>
+
 	Notebook, CellRendererText: Added missing properties.
 	
 	* gtk/src/cellrenderertext.hg: Added max-width-chars and align-set properties.
diff --git a/gtk/src/buttonbox.hg b/gtk/src/buttonbox.hg
index a0d4aa1..7023de2 100644
--- a/gtk/src/buttonbox.hg
+++ b/gtk/src/buttonbox.hg
@@ -69,8 +69,10 @@ public:
 
   _WRAP_METHOD(void set_child_secondary(Widget& child, bool is_secondary = true), gtk_button_box_set_child_secondary)
   _WRAP_METHOD(bool get_child_secondary(const Gtk::Widget& child) const, gtk_button_box_get_child_secondary)
+  
+  _WRAP_METHOD(bool get_child_non_homogeneous(const Gtk::Widget& child) const, gtk_button_box_get_child_non_homogeneous )
 
-  //TODO: Deprecate set_child_ipadding_y() and friends in gtkmm 2.4, and replace them with something in gtkmm 3?
+  _WRAP_METHOD(void set_child_non_homogeneous(Gtk::Widget& child, bool non_homogeneous = true), gtk_button_box_set_child_non_homogeneous)
   
   _WRAP_PROPERTY("layout-style", ButtonBoxStyle)
 };
diff --git a/gtk/src/cssprovider.hg b/gtk/src/cssprovider.hg
index 05588e5..6056d1b 100644
--- a/gtk/src/cssprovider.hg
+++ b/gtk/src/cssprovider.hg
@@ -52,6 +52,8 @@ protected:
 public:
   _WRAP_CREATE()
   
+  _WRAP_METHOD(Glib::ustring to_string() const, gtk_css_provider_to_string)
+  
   /** Loads @a data into this css provider, making it clear any previously loaded information.
    *
    * @param data CSS data loaded in memory.
diff --git a/gtk/src/entry.hg b/gtk/src/entry.hg
index 4c60b61..8bb58b3 100644
--- a/gtk/src/entry.hg
+++ b/gtk/src/entry.hg
@@ -127,6 +127,9 @@ public:
   _WRAP_METHOD(void set_progress_pulse_step(double fraction), gtk_entry_set_progress_pulse_step)
   _WRAP_METHOD(double get_progress_pulse_step(), gtk_entry_get_progress_pulse_step)
   _WRAP_METHOD(void progress_pulse(), gtk_entry_progress_pulse)
+  
+  _WRAP_METHOD(Glib::ustring get_placeholder_text() const, gtk_entry_get_placeholder_text)
+  _WRAP_METHOD(void set_placeholder_text(const Glib::ustring& text), gtk_entry_set_placeholder_text)
 
   //We hand-code these so we can change the parameter oder, so we can have a default parameter value:
   _WRAP_METHOD_DOCS_ONLY(gtk_entry_set_icon_from_pixbuf)
@@ -271,6 +274,7 @@ public:
   _WRAP_PROPERTY("primary-icon-tooltip-markup", bool)
   _WRAP_PROPERTY("secondary-icon-tooltip-markup", bool)
   _WRAP_PROPERTY("im-module", Glib::ustring)
+  _WRAP_PROPERTY("placeholder-text", Glib::ustring)
 };
 
 } /* namespace Gtk */
diff --git a/gtk/src/expander.hg b/gtk/src/expander.hg
index 983b1e7..4f1fc46 100644
--- a/gtk/src/expander.hg
+++ b/gtk/src/expander.hg
@@ -103,6 +103,9 @@ public:
 
   _WRAP_METHOD(void set_label_fill(bool label_fill = true), gtk_expander_set_label_fill)
   _WRAP_METHOD(bool get_label_fill() const, gtk_expander_get_label_fill)
+  
+  _WRAP_METHOD(void set_resize_toplevel(bool resize_toplevel = true), gtk_expander_set_resize_toplevel)
+  _WRAP_METHOD(bool get_resize_toplevel() const, gtk_expander_get_resize_toplevel)
 
   _IGNORE_SIGNAL("activate") //keybinding
 
@@ -113,6 +116,7 @@ public:
   _WRAP_PROPERTY("spacing", int)
   _WRAP_PROPERTY("label_widget", Widget*)
   _WRAP_PROPERTY("label_fill", bool)
+  _WRAP_PROPERTY("resize-toplevel", bool)
 };
 
 
diff --git a/gtk/src/gtk_extra_objects.defs b/gtk/src/gtk_extra_objects.defs
index fbf13c1..6e97bbb 100644
--- a/gtk/src/gtk_extra_objects.defs
+++ b/gtk/src/gtk_extra_objects.defs
@@ -12,6 +12,12 @@
   (gtype-id "GTK_TYPE_ACCEL_MAP")
 )
 
+(define-object AppChooser
+  (in-module "Gtk")
+  (c-name "GtkAppChooser")
+  (gtype-id "GTK_TYPE_APP_CHOOSER")
+)
+
 (define-object Clipboard
   (in-module "Gtk")
   (c-name "GtkClipboard")
@@ -73,6 +79,12 @@
   (gtype-id "GTK_TYPE_RECENT_FILTER")
 )
 
+(define-object RecentChooser
+  (in-module "Gtk")
+  (c-name "GtkRecentChooser")
+  (gtype-id "GTK_TYPE_RECENT_CHOOSER")
+)
+
 (define-object RecentInfo
   (in-module "Gtk")
   (c-name "GtkRecentInfo")
diff --git a/gtk/src/stylecontext.hg b/gtk/src/stylecontext.hg
index 863ef8b..c0c91f9 100644
--- a/gtk/src/stylecontext.hg
+++ b/gtk/src/stylecontext.hg
@@ -29,6 +29,7 @@ _PINCLUDE(gtk/gtk.h)
 #include <gtkmm/iconsource.h>
 #include <gtkmm/iconset.h>
 #include <gtkmm/widgetpath.h>
+#include <pangomm/fontdescription.h>
 #include <gtkmmconfig.h>
 
 
@@ -182,6 +183,9 @@ public:
   //TODO: region_id can be NULL.
   _WRAP_METHOD(void notify_state_change(const Glib::RefPtr<Gdk::Window>& window, gpointer region_id, StateType state, bool state_value), gtk_style_context_notify_state_change)
   
+  _WRAP_METHOD(void cancel_animations(gpointer region_id), gtk_style_context_cancel_animations)
+  _WRAP_METHOD(void scroll_animations(const Glib::RefPtr<Gdk::Window>& window, int dx, int dy), gtk_style_context_scroll_animations)
+  
   _WRAP_METHOD(void push_animatable_region(gpointer region_id), gtk_style_context_push_animatable_region)
   _WRAP_METHOD(void pop_animatable_region(), gtk_style_context_pop_animatable_region)
 
@@ -195,6 +199,9 @@ public:
   Gdk::RGBA  get_border_color(StateFlags state = (StateFlags)0) const;
   _IGNORE(gtk_style_context_get_border_color)
 
+#m4 _CONVERSION(`const PangoFontDescription*',`Pango::FontDescription',`Glib::wrap(const_cast<PangoFontDescription*>($3), true)')
+  _WRAP_METHOD(Pango::FontDescription get_font(StateFlags state = (StateFlags)0) const, gtk_style_context_get_font)
+
   Border get_border(StateFlags state = (StateFlags)0) const;
   _IGNORE(gtk_style_context_get_border)
   
diff --git a/gtk/src/treeviewcolumn.hg b/gtk/src/treeviewcolumn.hg
index bd988f4..150b9f4 100644
--- a/gtk/src/treeviewcolumn.hg
+++ b/gtk/src/treeviewcolumn.hg
@@ -148,6 +148,7 @@ public:
   _WRAP_METHOD(bool get_resizable() const, gtk_tree_view_column_get_resizable)
   _WRAP_METHOD(void set_sizing(TreeViewColumnSizing type), gtk_tree_view_column_set_sizing)
   _WRAP_METHOD(TreeViewColumnSizing get_sizing(), gtk_tree_view_column_get_sizing)
+  _WRAP_METHOD(int get_x_offset() const, gtk_tree_view_column_get_x_offset)
   _WRAP_METHOD(int get_width() const, gtk_tree_view_column_get_width)
   _WRAP_METHOD(int get_fixed_width() const, gtk_tree_view_column_get_fixed_width)
   _WRAP_METHOD(void set_fixed_width(int fixed_width), gtk_tree_view_column_set_fixed_width)
@@ -223,6 +224,7 @@ public:
   _WRAP_PROPERTY("sort-indicator", bool)
   _WRAP_PROPERTY("sort-order", SortType)
   _WRAP_PROPERTY("sort-column-id", int)
+  _WRAP_PROPERTY("cell-area", Glib::RefPtr<CellArea>)
 
 #ifndef DOXYGEN_SHOULD_SKIP_THIS
 private:



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