diff --git a/ChangeLog b/ChangeLog index 5bacf8007..0529b0c95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-30 Mike Kestner + + * gtk/Gtk.metadata : hide TreeView.InsertColumnWith*. + * gtk/TreeView.cs : manual implementations of InsertColumn overloads + for WithAttributes and WithDataFunc. + 2004-12-30 Alp Toker * README.generator: Close tag fix for example XML. diff --git a/doc/ChangeLog b/doc/ChangeLog index ff0c012aa..94aab39b3 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-30 Mike Kestner + + * en/Gtk/IterFactoryEntry.xml : fix a make assemble breakage. + * en/Gtk/TreeView.xml : docs for new InsertColumn overloads. + 2004-12-30 Shane Landrum * en/Gtk/ItemFactory.xml diff --git a/doc/en/Gtk/ItemFactoryEntry.xml b/doc/en/Gtk/ItemFactoryEntry.xml index 624555fdc..eadb8e939 100644 --- a/doc/en/Gtk/ItemFactoryEntry.xml +++ b/doc/en/Gtk/ItemFactoryEntry.xml @@ -70,7 +70,7 @@ The accelerator key for this item. - For example, "O". + For example, "<control>O". diff --git a/doc/en/Gtk/TreeView.xml b/doc/en/Gtk/TreeView.xml index 485b85a0e..a39bec948 100644 --- a/doc/en/Gtk/TreeView.xml +++ b/doc/en/Gtk/TreeView.xml @@ -1765,40 +1765,60 @@ tree_view.AppendColumn ("title", text, "text", 0); Whether or not to assume all rows are the same height. a - This is an optimization; set to for fastest performance. + This is an optimization; set to for fastest performance. - - + + Method System.Int32 - + - - - + Convenience function that inserts a new column into the tree view with the given cell renderer and a to set cell renderer attributes (normally using data from the model). - a , the position of the new column (-1 to append, positive numbers to insert) + a , the position of the new column (-1 to append, positive numbers to insert) a , the column title a , the renderer object - a , a function for presenting the data - a , pointer to the data for - a , a destroy notifier for - a + a , a function for presenting the data + The number of columns in the tree view after the insertion. - See also , . - If the tree view has enabled, then must have its - property set to be . + See also , . + If the tree view has enabled, then must have its + property set to be . + + + Method + + System.Int32 + + + + + + + + + Convenience function that inserts a new column into the tree view + with the given cell renderer and attribute bindings for the cell renderer. + + a , the position of the new column (-1 to append, positive numbers to insert) + a , the column title + a , the renderer object + an array of attribute bindings + The number of columns in the tree view after the insertion. + + + diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index 18aa86246..8dbe9f189 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -356,6 +356,8 @@ out 1 1 + 1 + 1 ActivateRow GetRowExpanded 1 diff --git a/gtk/TreeView.custom b/gtk/TreeView.custom index 36c77da0b..ecf17def1 100644 --- a/gtk/TreeView.custom +++ b/gtk/TreeView.custom @@ -136,3 +136,18 @@ return col; } + public int InsertColumn (int pos, string title, CellRenderer cell, TreeCellDataFunc cell_data) + { + TreeViewColumn col = new TreeViewColumn (); + col.Title = title; + col.PackStart (cell, true); + col.SetCellDataFunc (cell, cell_data); + return InsertColumn (col, pos); + } + + public int InsertColumn (int pos, string title, CellRenderer cell, params object[] attrs) + { + TreeViewColumn col = new TreeViewColumn (title, cell, attrs); + return InsertColumn (col, pos); + } +