[gtkmm] gtkmm: Added remaining missing properties.



commit f9dd67de078eab273a8a4cb2af99ff05a73130ce
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Sep 25 23:40:43 2010 +0200

    gtkmm: Added remaining missing properties.
    
    * tools/extra_defs_gen/generate_defs_gtk.cc: Added GtkTreeModelSort.
    * gtk/src/gtk_signals.defs: Added the new section for this object.
    * gtk/src/scalebutton.hg: Added icons property.
    * gtk/src/scrolledwindow.hg: Added window_placement_set property.
    * gtk/src/separatortoolitem.hg: Added draw property.
    * gtk/src/statusicon.hg: Added tooltips, icon-size and icon-size-set
    properties.
    * gtk/src/toolbutton.hg: Added icon_name property.
    * gtk/src/treemodelfilter.hg: Added child_model and virtual_root properties.
    * gtk/src/treemodelsort.hg: Added model property.
    * gtk/src/treeview.hg: Added tooltip-column property.
    * gtk/src/treeviewcolumn.hg: Added resizable, spacing and sort-column-id
    properties.
    * gtk/src/widget.hg: Added is_focus and double_buffered properties.
    * gtk/src/window.hg: Added type, startup_id and opacity properties.

 ChangeLog                                 |   20 ++++++++++++++++++++
 gtk/src/enums.hg                          |    1 -
 gtk/src/gtk_signals.defs                  |   12 ++++++++++++
 gtk/src/scalebutton.hg                    |    1 +
 gtk/src/scrolledwindow.hg                 |    1 +
 gtk/src/separatortoolitem.hg              |    4 +++-
 gtk/src/statusicon.hg                     |    5 +++++
 gtk/src/table.hg                          |    1 +
 gtk/src/textbuffer.hg                     |    1 +
 gtk/src/textmark.hg                       |    3 +++
 gtk/src/toggleaction.hg                   |    1 +
 gtk/src/toggletoolbutton.hg               |    2 ++
 gtk/src/toolbar.hg                        |    3 +++
 gtk/src/toolbutton.hg                     |    1 +
 gtk/src/treemodelfilter.hg                |    3 +++
 gtk/src/treemodelsort.hg                  |    2 ++
 gtk/src/treeview.hg                       |    1 +
 gtk/src/treeviewcolumn.hg                 |    3 +++
 gtk/src/widget.hg                         |    2 ++
 gtk/src/window.hg                         |    3 +++
 tools/extra_defs_gen/generate_defs_gtk.cc |    1 +
 21 files changed, 69 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a93f916..eccda70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,25 @@
 2010-09-25  Murray Cumming  <murrayc murrayc com>
 
+	gtkmm: Added remaining missing properties.
+
+	* tools/extra_defs_gen/generate_defs_gtk.cc: Added GtkTreeModelSort.
+	* gtk/src/gtk_signals.defs: Added the new section for this object.
+	* gtk/src/scalebutton.hg: Added icons property.
+	* gtk/src/scrolledwindow.hg: Added window_placement_set property.
+	* gtk/src/separatortoolitem.hg: Added draw property.
+	* gtk/src/statusicon.hg: Added tooltips, icon-size and icon-size-set 
+	properties.
+	* gtk/src/toolbutton.hg: Added icon_name property.
+	* gtk/src/treemodelfilter.hg: Added child_model and virtual_root properties.
+	* gtk/src/treemodelsort.hg: Added model property.
+	* gtk/src/treeview.hg: Added tooltip-column property.
+	* gtk/src/treeviewcolumn.hg: Added resizable, spacing and sort-column-id 
+	properties.
+	* gtk/src/widget.hg: Added is_focus and double_buffered properties.
+	* gtk/src/window.hg: Added type, startup_id and opacity properties.
+		
+2010-09-25  Murray Cumming  <murrayc murrayc com>
+
 	gtkmm: Added yet more missing properties.
 
 	* gtk/src/menubar.hg: Added pack_direction and child_pack_direction 
diff --git a/gtk/src/enums.hg b/gtk/src/enums.hg
index 2b78fae..6280f17 100644
--- a/gtk/src/enums.hg
+++ b/gtk/src/enums.hg
@@ -84,7 +84,6 @@ _WRAP_ENUM(PackType, GtkPackType)
 _WRAP_ENUM(PathPriorityType, GtkPathPriorityType)
 _WRAP_ENUM(PathType, GtkPathType)
 _WRAP_ENUM(PolicyType, GtkPolicyType)
-_WRAP_ENUM(ProgressBarOrientation, GtkProgressBarOrientation)
 _WRAP_ENUM(PositionType, GtkPositionType)
 _WRAP_ENUM(ReliefStyle, GtkReliefStyle)
 _WRAP_ENUM(ResizeMode, GtkResizeMode)
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 03998cc..2fb1000 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -42036,6 +42036,18 @@
   (construct-only #t)
 )
 
+
+;; From GtkTreeModelSort
+
+(define-property model
+  (of-object "GtkTreeModelSort")
+  (prop-type "GParamObject")
+  (docs "The model for the TreeModelSort to sort")
+  (readable #t)
+  (writable #t)
+  (construct-only #t)
+)
+
 ;; From GtkTreeStore
 
 ;; From GtkTreeView
diff --git a/gtk/src/scalebutton.hg b/gtk/src/scalebutton.hg
index ec57060..c1aa7be 100644
--- a/gtk/src/scalebutton.hg
+++ b/gtk/src/scalebutton.hg
@@ -74,6 +74,7 @@ public:
   _WRAP_PROPERTY("value", double)
   _WRAP_PROPERTY("size", IconSize)
   _WRAP_PROPERTY("adjustment", Adjustment*)
+  _WRAP_PROPERTY("icons", Glib::StringArrayHandle)
   _WRAP_PROPERTY("orientation", Orientation)
 };
 
diff --git a/gtk/src/scrolledwindow.hg b/gtk/src/scrolledwindow.hg
index 754d5ca..67341c9 100644
--- a/gtk/src/scrolledwindow.hg
+++ b/gtk/src/scrolledwindow.hg
@@ -99,6 +99,7 @@ public:
   _WRAP_PROPERTY("hscrollbar-policy", PolicyType)
   _WRAP_PROPERTY("vscrollbar-policy", PolicyType)
   _WRAP_PROPERTY("window-placement", CornerType)
+  _WRAP_PROPERTY("window-placement-set", bool)
   _WRAP_PROPERTY("shadow-type", ShadowType)
 };
 
diff --git a/gtk/src/separatortoolitem.hg b/gtk/src/separatortoolitem.hg
index 39f278d..bc11a7c 100644
--- a/gtk/src/separatortoolitem.hg
+++ b/gtk/src/separatortoolitem.hg
@@ -41,7 +41,9 @@ class SeparatorToolItem : public ToolItem
 {
   _CLASS_GTKOBJECT(SeparatorToolItem, GtkSeparatorToolItem, GTK_SEPARATOR_TOOL_ITEM, Gtk::ToolItem, GtkToolItem)
 public:
-  _CTOR_DEFAULT()    
+  _CTOR_DEFAULT()
+  
+  _WRAP_PROPERTY("draw", bool)
 };
 
 } // namespace Gtk
diff --git a/gtk/src/statusicon.hg b/gtk/src/statusicon.hg
index 377395c..72d3526 100644
--- a/gtk/src/statusicon.hg
+++ b/gtk/src/statusicon.hg
@@ -173,6 +173,11 @@ public:
   _WRAP_PROPERTY("size", int)
   _WRAP_PROPERTY("screen", Glib::RefPtr<Gdk::Screen>)
   _WRAP_PROPERTY("visible", bool)
+  _WRAP_PROPERTY("embedded", bool)
+  _WRAP_PROPERTY("orientation", Orientation)
+  _WRAP_PROPERTY("has-tooltip", bool)
+  _WRAP_PROPERTY("tooltip-text", Glib::ustring)
+  _WRAP_PROPERTY("tooltip-markup", Glib::ustring)
   _WRAP_PROPERTY("title", Glib::ustring)
 
   _WRAP_SIGNAL(bool size_changed(int size), size_changed)
diff --git a/gtk/src/table.hg b/gtk/src/table.hg
index 0f6f48f..9223a98 100644
--- a/gtk/src/table.hg
+++ b/gtk/src/table.hg
@@ -108,6 +108,7 @@ public:
   _WRAP_PROPERTY("n-columns", guint)
   _WRAP_PROPERTY("column-spacing", guint)
   _WRAP_PROPERTY("row-spacing", guint)
+  _WRAP_PROPERTY("homogeneous", bool)
 };
 
 } // namespace Gtk
diff --git a/gtk/src/textbuffer.hg b/gtk/src/textbuffer.hg
index 42958b1..e4af30d 100644
--- a/gtk/src/textbuffer.hg
+++ b/gtk/src/textbuffer.hg
@@ -556,6 +556,7 @@ _CONVERSION(`const char*',`const Glib::ustring&',`Glib::ustring(p1, p1 + p2)')
 #m4 _CONVERSION(`const Glib::RefPtr<Gtk::Clipboard>&', `GtkClipboard*', Glib::unwrap($3))
   _WRAP_SIGNAL(void paste_done(const Glib::RefPtr<Gtk::Clipboard>& clipboard), "paste_done")
 
+  _WRAP_PROPERTY("tag-table", Glib::RefPtr<TextBuffer::TagTable>)
   _WRAP_PROPERTY("text", Glib::ustring)
   _WRAP_PROPERTY("has-selection", bool)
   _WRAP_PROPERTY("cursor-position", int)
diff --git a/gtk/src/textmark.hg b/gtk/src/textmark.hg
index 514e475..b3878a4 100644
--- a/gtk/src/textmark.hg
+++ b/gtk/src/textmark.hg
@@ -137,6 +137,9 @@ public:
 
   //TODO: Add a const overload, if we have a ConstTextIter. 
   TextIter get_iter();
+  
+  _WRAP_PROPERTY("name", Glib::ustring)
+  _WRAP_PROPERTY("left-gravity", bool)
 };
 
 } /* namespace Gtk */
diff --git a/gtk/src/toggleaction.hg b/gtk/src/toggleaction.hg
index f1bd8df..744a756 100644
--- a/gtk/src/toggleaction.hg
+++ b/gtk/src/toggleaction.hg
@@ -120,6 +120,7 @@ public:
   _WRAP_SIGNAL(void toggled(), "toggled")
 
   _WRAP_PROPERTY("draw_as_radio", bool)          
+  _WRAP_PROPERTY("active", bool)
 };
 
 } // namespace Gtk
diff --git a/gtk/src/toggletoolbutton.hg b/gtk/src/toggletoolbutton.hg
index cdf6665..b445b1e 100644
--- a/gtk/src/toggletoolbutton.hg
+++ b/gtk/src/toggletoolbutton.hg
@@ -74,6 +74,8 @@ public:
   _WRAP_METHOD(bool get_active() const, gtk_toggle_tool_button_get_active)
 
   _WRAP_SIGNAL(void toggled(), toggled)
+  
+  _WRAP_PROPERTY("active", bool)
 };
 
 } // namespace Gtk
diff --git a/gtk/src/toolbar.hg b/gtk/src/toolbar.hg
index 0ae2835..8692bd1 100644
--- a/gtk/src/toolbar.hg
+++ b/gtk/src/toolbar.hg
@@ -130,6 +130,9 @@ public:
   _WRAP_PROPERTY("orientation", Orientation)
   _WRAP_PROPERTY("toolbar_style", ToolbarStyle)
   _WRAP_PROPERTY("show_arrow", bool)
+  _WRAP_PROPERTY("tooltips", bool)
+  _WRAP_PROPERTY("icon-size", IconSize)
+  _WRAP_PROPERTY("icon-size-set", bool)
 };
 
 } // namespace Gtk
diff --git a/gtk/src/toolbutton.hg b/gtk/src/toolbutton.hg
index 43ab7b3..120f12b 100644
--- a/gtk/src/toolbutton.hg
+++ b/gtk/src/toolbutton.hg
@@ -88,6 +88,7 @@ public:
   _WRAP_PROPERTY("use_underline", bool)
   _WRAP_PROPERTY("label_widget", Gtk::Widget*)
   _WRAP_PROPERTY("stock_id", Glib::ustring)
+  _WRAP_PROPERTY("icon_name", Glib::ustring)
   _WRAP_PROPERTY("icon_widget", Gtk::Widget)
 };
 
diff --git a/gtk/src/treemodelfilter.hg b/gtk/src/treemodelfilter.hg
index f32855a..fb99424 100644
--- a/gtk/src/treemodelfilter.hg
+++ b/gtk/src/treemodelfilter.hg
@@ -121,6 +121,9 @@ public:
 
   _WRAP_METHOD(void refilter(), gtk_tree_model_filter_refilter)
   _WRAP_METHOD(void clear_cache(), gtk_tree_model_filter_clear_cache)
+  
+  _WRAP_PROPERTY("child-model", Glib::RefPtr<TreeModel>)
+  _WRAP_PROPERTY("virtual-root", TreeModel::Path)
 
 protected:
   virtual void set_value_impl(const iterator& row, int column, const Glib::ValueBase& value);
diff --git a/gtk/src/treemodelsort.hg b/gtk/src/treemodelsort.hg
index 2f76454..65d252e 100644
--- a/gtk/src/treemodelsort.hg
+++ b/gtk/src/treemodelsort.hg
@@ -86,6 +86,8 @@ public:
   _WRAP_METHOD(void clear_cache(), gtk_tree_model_sort_clear_cache)
 
   _WRAP_METHOD(bool iter_is_valid(const iterator& iter) const, gtk_tree_model_sort_iter_is_valid)
+  
+  _WRAP_PROPERTY("model", Glib::RefPtr<TreeModel>)
 
 protected:
   virtual void set_value_impl(const iterator& row, int column, const Glib::ValueBase& value);
diff --git a/gtk/src/treeview.hg b/gtk/src/treeview.hg
index 016f6a5..8d3e70c 100644
--- a/gtk/src/treeview.hg
+++ b/gtk/src/treeview.hg
@@ -813,6 +813,7 @@ _CONVERSION(`GtkTreeIter*',`const TreeModel::iterator&',`TreeModel::iterator(gtk
   _WRAP_PROPERTY("rubber-banding", bool)
   _WRAP_PROPERTY("enable-grid-lines", bool)
   _WRAP_PROPERTY("enable-tree-lines", bool)
+  _WRAP_PROPERTY("tooltip-column", int)
 
   /// Get the treeview's model, but actually get the child model if it's a TreeModelFilter.
   Glib::RefPtr<Gtk::TreeModel> _get_base_model();
diff --git a/gtk/src/treeviewcolumn.hg b/gtk/src/treeviewcolumn.hg
index 651c229..92bc1c3 100644
--- a/gtk/src/treeviewcolumn.hg
+++ b/gtk/src/treeviewcolumn.hg
@@ -205,7 +205,9 @@ public:
   _WRAP_SIGNAL(void clicked(), "clicked")
 
   _WRAP_PROPERTY("visible", bool)
+  _WRAP_PROPERTY("resizable", bool)
   _WRAP_PROPERTY("width", int)
+  _WRAP_PROPERTY("spacing", int)
   _WRAP_PROPERTY("sizing", TreeViewColumnSizing)
   _WRAP_PROPERTY("fixed-width", int)
   _WRAP_PROPERTY("min-width", int)
@@ -218,6 +220,7 @@ public:
   _WRAP_PROPERTY("reorderable", bool)
   _WRAP_PROPERTY("sort-indicator", bool)
   _WRAP_PROPERTY("sort-order", SortType)
+  _WRAP_PROPERTY("sort-column-id", int)
 
 #ifndef DOXYGEN_SHOULD_SKIP_THIS
 private:
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index 7ecc13f..882abd8 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -908,6 +908,7 @@ dnl
   _WRAP_PROPERTY("app_paintable", bool)
   _WRAP_PROPERTY("can_focus", bool)
   _WRAP_PROPERTY("has_focus", bool)
+  _WRAP_PROPERTY("is_focus", bool)
   _WRAP_PROPERTY("can_default", bool)
   _WRAP_PROPERTY("has_default", bool)
   _WRAP_PROPERTY("receives_default", bool)
@@ -920,6 +921,7 @@ dnl
   _WRAP_PROPERTY("tooltip_text", Glib::ustring)
   _WRAP_PROPERTY("window", Glib::RefPtr<Gdk::Window>)
   _WRAP_PROPERTY("no-show-all", bool)
+  _WRAP_PROPERTY("double-buffered", bool)
 
   _WRAP_PROPERTY("halign", Align)
   _WRAP_PROPERTY("valign", Align)
diff --git a/gtk/src/window.hg b/gtk/src/window.hg
index fa754df..fb0eda1 100644
--- a/gtk/src/window.hg
+++ b/gtk/src/window.hg
@@ -66,7 +66,9 @@ class Window : public Bin
 public:
   _WRAP_CTOR(Window(WindowType type = WINDOW_TOPLEVEL), gtk_window_new)
 
+  _WRAP_PROPERTY("type", WindowType)
   _WRAP_PROPERTY("title", Glib::ustring)
+  _WRAP_PROPERTY("startup-id", Glib::ustring)
   _WRAP_PROPERTY("allow_shrink", bool)
   _WRAP_PROPERTY("allow_grow", bool)
   _WRAP_PROPERTY("resizable", bool)
@@ -88,6 +90,7 @@ public:
   _WRAP_PROPERTY("decorated", bool)
   _WRAP_PROPERTY("gravity", Gdk::Gravity)
   _WRAP_PROPERTY("transient_for", Window*)
+  _WRAP_PROPERTY("opacity", double)
   _WRAP_PROPERTY("urgency_hint", bool)
   _WRAP_PROPERTY("accept-focus", bool)
   _WRAP_PROPERTY("focus-on-map", bool)
diff --git a/tools/extra_defs_gen/generate_defs_gtk.cc b/tools/extra_defs_gen/generate_defs_gtk.cc
index 9c79376..d72823e 100644
--- a/tools/extra_defs_gen/generate_defs_gtk.cc
+++ b/tools/extra_defs_gen/generate_defs_gtk.cc
@@ -196,6 +196,7 @@ int main(int argc, char** argv)
             << get_defs( GTK_TYPE_TREE_SELECTION )
             << get_defs( GTK_TYPE_TREE_SORTABLE )
             << get_defs( GTK_TYPE_TREE_MODEL_FILTER )
+            << get_defs( GTK_TYPE_TREE_MODEL_SORT )
             << get_defs( GTK_TYPE_TREE_STORE )
             << get_defs( GTK_TYPE_TREE_VIEW )
             << get_defs( GTK_TYPE_TREE_VIEW_COLUMN )



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