]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-2.0, gtk+-3.0: Fix TreePath.to_string and TreeView.get_visible_range
authorLuca Bruno <lucabru@src.gnome.org>
Tue, 19 Mar 2013 23:25:19 +0000 (23:25 +0000)
committerLuca Bruno <lucabru@src.gnome.org>
Tue, 19 Mar 2013 23:25:37 +0000 (23:25 +0000)
Based on patch by shuerhaaken.

Fixes bug 695812.

vapi/gtk+-2.0.vapi
vapi/gtk+-3.0.vapi
vapi/packages/gtk+-2.0/gtk+-2.0.metadata
vapi/packages/gtk+-3.0/gtk+-3.0.metadata

index dd3d2b9b908a125618bb569c11103cce89de09a7..2c4da87f7d31f36c968c539eb8616e6df2690759 100644 (file)
@@ -5050,7 +5050,7 @@ namespace Gtk {
                public void next ();
                public void prepend_index (int index_);
                public bool prev ();
-               public unowned string to_string ();
+               public string to_string ();
                public bool up ();
        }
        [CCode (cheader_filename = "gtk/gtk.h", copy_function = "gtk_tree_row_reference_copy", type_id = "gtk_tree_row_reference_get_type ()")]
@@ -5197,7 +5197,7 @@ namespace Gtk {
                public int get_tooltip_column ();
                public bool get_tooltip_context (ref int x, ref int y, bool keyboard_tip, out unowned Gtk.TreeModel model, out unowned Gtk.TreePath path, out Gtk.TreeIter iter);
                public unowned Gtk.Adjustment get_vadjustment ();
-               public bool get_visible_range (out unowned Gtk.TreePath start_path, out unowned Gtk.TreePath end_path);
+               public bool get_visible_range (out Gtk.TreePath start_path, out Gtk.TreePath end_path);
                public void get_visible_rect (out Gdk.Rectangle visible_rect);
                public int insert_column (Gtk.TreeViewColumn column, int position);
                public int insert_column_with_attributes (int position, string? title, Gtk.CellRenderer cell, ...);
index 2db48cf8e0a8d2de8d9b7983790356a942d64433..7b10f268437821ba648f98462e58696b0270a8a7 100644 (file)
@@ -5415,7 +5415,7 @@ namespace Gtk {
                public void next ();
                public void prepend_index (int index_);
                public bool prev ();
-               public unowned string to_string ();
+               public string to_string ();
                public bool up ();
        }
        [CCode (cheader_filename = "gtk/gtk.h", copy_function = "gtk_tree_row_reference_copy", type_id = "gtk_tree_row_reference_get_type ()")]
@@ -5547,7 +5547,7 @@ namespace Gtk {
                public int get_tooltip_column ();
                public bool get_tooltip_context (ref int x, ref int y, bool keyboard_tip, out unowned Gtk.TreeModel model, out unowned Gtk.TreePath path, out Gtk.TreeIter iter);
                public unowned Gtk.Adjustment get_vadjustment ();
-               public bool get_visible_range (out unowned Gtk.TreePath start_path, out unowned Gtk.TreePath end_path);
+               public bool get_visible_range (out Gtk.TreePath start_path, out Gtk.TreePath end_path);
                public void get_visible_rect (out Gdk.Rectangle visible_rect);
                public int insert_column (Gtk.TreeViewColumn column, int position);
                public int insert_column_with_attributes (int position, string? title, Gtk.CellRenderer cell, ...);
index 548677b0bec712d25a8007c4678896c9d44eee93..40c4f7fcaa1336e3862ca313d9e5599ad7dfb742 100644 (file)
@@ -247,6 +247,8 @@ gtk_icon_view_get_tooltip_context.iter is_out="1"
 gtk_icon_view_get_tooltip_context.x is_out="1"
 gtk_icon_view_get_tooltip_context.y is_out="1"
 gtk_icon_view_get_selected_items transfer_ownership="1" type_arguments="TreePath"
+gtk_tree_view_get_visible_range.start_path is_out="1" transfer_ownership="1"
+gtk_tree_view_get_visible_range.end_path is_out="1" transfer_ownership="1"
 gtk_icon_set_copy transfer_ownership="1"
 gtk_icon_source_copy transfer_ownership="1"
 gtk_icon_theme_list_contexts transfer_ownership="1" type_arguments="string"
@@ -743,6 +745,7 @@ gtk_tree_model_sort_convert_iter_to_child_iter.child_iter is_out="1"
 gtk_tree_path_get_indices is_array="1" no_array_length="1"
 gtk_tree_path_new_from_indices sentinel="-1"
 gtk_tree_path_copy transfer_ownership="1"
+gtk_tree_path_to_string transfer_ownership="1"
 # GtkTreePath should be an opaque value type as it is not immutable
 # but should have copy-on-assignment semantics
 GtkTreePath is_value_type="0" is_immutable="1" const_cname="GtkTreePath"
index 2f78fd5d841147b7f81f471cfd4c4972a1c245f7..6bbc7f8cbf7913475075a0f08f18061bb97c241a 100644 (file)
@@ -932,6 +932,7 @@ gtk_tree_path_get_indices_with_depth is_array="1" name="get_indices"
 gtk_tree_path_get_indices_with_depth.depth hidden="1"
 gtk_tree_path_new_from_indices sentinel="-1"
 gtk_tree_path_copy transfer_ownership="1"
+gtk_tree_path_to_string transfer_ownership="1"
 # GtkTreePath should be an opaque value type as it is not immutable
 # but should have copy-on-assignment semantics
 GtkTreePath is_value_type="0" is_immutable="1" const_cname="GtkTreePath"
@@ -1021,6 +1022,8 @@ gtk_tree_view_get_drag_dest_row.pos is_out="1" value_owned="1"
 gtk_tree_view_get_tooltip_context.iter is_out="1"
 gtk_tree_view_get_tooltip_context.x is_ref="1"
 gtk_tree_view_get_tooltip_context.y is_ref="1"
+gtk_tree_view_get_visible_range.start_path is_out="1" transfer_ownership="1"
+gtk_tree_view_get_visible_range.end_path is_out="1" transfer_ownership="1"
 gtk_tree_view_get_visible_rect.visible_rect is_out="1"
 gtk_tree_view_insert_column_with_attributes ellipsis="1"
 gtk_tree_view_insert_column_with_attributes.title nullable="1"