[gtkmm/gtkmm-2-22] gtkmm: Added remaining missing properties.



commit 5522414435121015450ecde14eeec794a5c9c78f
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/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 +
 20 files changed, 69 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0c3d6fe..81ab11b 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/gtk_signals.defs b/gtk/src/gtk_signals.defs
index b32c5d4..63bbb8c 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -43153,6 +43153,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 83d6218..877879b 100644
--- a/gtk/src/scalebutton.hg
+++ b/gtk/src/scalebutton.hg
@@ -79,6 +79,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 4a8efc9..dc36c2d 100644
--- a/gtk/src/scrolledwindow.hg
+++ b/gtk/src/scrolledwindow.hg
@@ -115,6 +115,7 @@ _DEPRECATE_IFDEF_END
   _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 d665315..1cecf61 100644
--- a/gtk/src/statusicon.hg
+++ b/gtk/src/statusicon.hg
@@ -180,6 +180,11 @@ public:
   _WRAP_PROPERTY("screen", Glib::RefPtr<Gdk::Screen>)
   _WRAP_PROPERTY("blinking", bool)
   _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 84f748b..c921689 100644
--- a/gtk/src/table.hg
+++ b/gtk/src/table.hg
@@ -197,6 +197,7 @@ _DEPRECATE_IFDEF_END
   _WRAP_PROPERTY("n-columns", guint)
   _WRAP_PROPERTY("column-spacing", guint)
   _WRAP_PROPERTY("row-spacing", guint)
+  _WRAP_PROPERTY("homogeneous", bool)
 
 protected:
 #ifndef DOXYGEN_SHOULD_SKIP_THIS
diff --git a/gtk/src/textbuffer.hg b/gtk/src/textbuffer.hg
index e07787a..1102d13 100644
--- a/gtk/src/textbuffer.hg
+++ b/gtk/src/textbuffer.hg
@@ -578,6 +578,7 @@ _CONVERSION(`const char*',`const Glib::ustring&',`Glib::ustring(p1, p1 + p2)')
 #m4 _CONVERSION(`GtkClipboard*',`const Glib::RefPtr<Gtk::Clipboard>&', Glib::wrap($3, true))
   _WRAP_SIGNAL(void paste_done(const Glib::RefPtr<Gtk::Clipboard>& clipboard), "paste_done", no_default_handler)
 
+  _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 656cf9c..39d073b 100644
--- a/gtk/src/toolbar.hg
+++ b/gtk/src/toolbar.hg
@@ -140,6 +140,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 ec56e9c..185b8e6 100644
--- a/gtk/src/toolbutton.hg
+++ b/gtk/src/toolbutton.hg
@@ -89,6 +89,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 d70572a..a74dab3 100644
--- a/gtk/src/treemodelfilter.hg
+++ b/gtk/src/treemodelfilter.hg
@@ -127,6 +127,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 dc9124c..432c8c9 100644
--- a/gtk/src/treemodelsort.hg
+++ b/gtk/src/treemodelsort.hg
@@ -88,6 +88,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 a3036eb..367ead6 100644
--- a/gtk/src/treeview.hg
+++ b/gtk/src/treeview.hg
@@ -829,6 +829,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 24794d0..ac2b957 100644
--- a/gtk/src/treeviewcolumn.hg
+++ b/gtk/src/treeviewcolumn.hg
@@ -235,7 +235,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)
@@ -248,6 +250,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 00b485f..756f9e2 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -1008,6 +1008,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)
@@ -1020,6 +1021,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)
 
 protected:
   //comment in GTK+ header: "seldomly overidden"
diff --git a/gtk/src/window.hg b/gtk/src/window.hg
index e05aa14..92c9b63 100644
--- a/gtk/src/window.hg
+++ b/gtk/src/window.hg
@@ -72,7 +72,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)
@@ -94,6 +96,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 c70c9ee..cb48031 100644
--- a/tools/extra_defs_gen/generate_defs_gtk.cc
+++ b/tools/extra_defs_gen/generate_defs_gtk.cc
@@ -211,6 +211,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]