[vala] gtk+-2.0: Fix gtk_tree_view_get_columns binding
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] gtk+-2.0: Fix gtk_tree_view_get_columns binding
- Date: Tue, 15 Sep 2009 19:44:13 +0000 (UTC)
commit 8953b83cf53a0f5df5438a1c16fbefebc6f255b7
Author: Evan Nemerson <evan polussystems com>
Date: Sun Aug 30 08:48:59 2009 -0700
gtk+-2.0: Fix gtk_tree_view_get_columns binding
TreeView.get_columns returns a GList of unowned GtkTreeViewColumn.
Fixes bug 591191.
vapi/gtk+-2.0.vapi | 2 +-
vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala | 4 ++++
vapi/packages/gtk+-2.0/gtk+-2.0.metadata | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi
index a7e9baf..a9f69df 100644
--- a/vapi/gtk+-2.0.vapi
+++ b/vapi/gtk+-2.0.vapi
@@ -4699,7 +4699,7 @@ namespace Gtk {
public unowned Gdk.Window get_bin_window ();
public void get_cell_area (Gtk.TreePath? path, Gtk.TreeViewColumn? column, out Gdk.Rectangle rect);
public unowned Gtk.TreeViewColumn get_column (int n);
- public GLib.List<Gtk.TreeViewColumn> get_columns ();
+ public GLib.List<weak Gtk.TreeViewColumn> get_columns ();
public void get_cursor (out Gtk.TreePath? path, out unowned Gtk.TreeViewColumn? focus_column);
public bool get_dest_row_at_pos (int drag_x, int drag_y, out Gtk.TreePath? path, out Gtk.TreeViewDropPosition pos);
public void get_drag_dest_row (out Gtk.TreePath? path, out Gtk.TreeViewDropPosition pos);
diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala b/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala
index 075ddcb..1893342 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala
@@ -43,6 +43,10 @@ namespace Gtk {
public void position_menu (Gtk.Menu menu, out int x, out int y, out bool push_in);
}
+ public class TreeView {
+ public GLib.List<weak Gtk.TreeViewColumn> get_columns ();
+ }
+
public class UIManager {
public uint new_merge_id ();
}
diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
index eef3c00..bd3d3cc 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
@@ -563,7 +563,7 @@ gtk_tree_view_get_background_area.column nullable="1"
gtk_tree_view_get_cell_area.rect is_out="1"
gtk_tree_view_get_cell_area.path nullable="1"
gtk_tree_view_get_cell_area.column nullable="1"
-gtk_tree_view_get_columns transfer_ownership="1" type_arguments="TreeViewColumn"
+gtk_tree_view_get_columns hidden="1"
gtk_tree_view_get_cursor.path value_owned="1" nullable="1"
gtk_tree_view_get_cursor.focus_column nullable="1"
gtk_tree_view_get_path_at_pos.path value_owned="1" nullable="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]