From: Evan Nemerson Date: Wed, 22 Jul 2009 01:06:42 +0000 (-0700) Subject: Make many copy methods transfer ownership X-Git-Tag: 0.7.5~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c864fc71b7003018fcbda41a258e71e6ac626608;p=thirdparty%2Fvala.git Make many copy methods transfer ownership Fixes bug 589309. --- diff --git a/vapi/gconf-2.0.vapi b/vapi/gconf-2.0.vapi index 58a811c4f..5b1ebab74 100644 --- a/vapi/gconf-2.0.vapi +++ b/vapi/gconf-2.0.vapi @@ -133,7 +133,7 @@ namespace GConf { public class Entry { public weak string key; public weak GConf.Value value; - public unowned GConf.Entry copy (); + public GConf.Entry copy (); public bool equal (GConf.Entry b); public bool get_is_default (); public bool get_is_writable (); @@ -189,7 +189,7 @@ namespace GConf { [Compact] [CCode (copy_function = "gconf_schema_copy", cheader_filename = "gconf/gconf.h")] public class Schema { - public unowned GConf.Schema copy (); + public GConf.Schema copy (); public GConf.ValueType get_car_type (); public GConf.ValueType get_cdr_type (); public unowned GConf.Value get_default_value (); @@ -216,7 +216,7 @@ namespace GConf { public class Value { public GConf.ValueType type; public int compare (GConf.Value value_b); - public unowned GConf.Value copy (); + public GConf.Value copy (); [CCode (has_construct_function = false)] public Value.from_string (GConf.ValueType type, string str) throws GLib.Error; public bool get_bool (); diff --git a/vapi/gdk-2.0.vapi b/vapi/gdk-2.0.vapi index f02e4de44..9000b4c13 100644 --- a/vapi/gdk-2.0.vapi +++ b/vapi/gdk-2.0.vapi @@ -378,7 +378,7 @@ namespace Gdk { [Compact] [CCode (copy_function = "gdk_region_copy", free_function = "gdk_region_destroy", cheader_filename = "gdk/gdk.h")] public class Region { - public unowned Gdk.Region copy (); + public Gdk.Region copy (); public bool empty (); public bool equal (Gdk.Region region2); public void get_clipbox (out Gdk.Rectangle rectangle); diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi index 90534090c..2a9eb0fe5 100644 --- a/vapi/gio-2.0.vapi +++ b/vapi/gio-2.0.vapi @@ -747,7 +747,7 @@ namespace GLib { [Compact] [CCode (copy_function = "g_srv_target_copy", type_id = "G_TYPE_SRV_TARGET", cheader_filename = "gio/gio.h")] public class SrvTarget { - public unowned GLib.SrvTarget copy (); + public GLib.SrvTarget copy (); public unowned string get_hostname (); public uint16 get_port (); public uint16 get_priority (); diff --git a/vapi/gnome-desktop-2.0.vapi b/vapi/gnome-desktop-2.0.vapi index b892307f2..289edaf74 100644 --- a/vapi/gnome-desktop-2.0.vapi +++ b/vapi/gnome-desktop-2.0.vapi @@ -25,7 +25,7 @@ namespace Gnome { public bool attr_exists (string attr); public void clear_localestring (string attr); public void clear_section (string section); - public unowned Gnome.DesktopItem copy (); + public Gnome.DesktopItem copy (); public int drop_uri_list (string uri_list, Gnome.DesktopItemLaunchFlags flags) throws GLib.Error; public int drop_uri_list_with_env (string uri_list, Gnome.DesktopItemLaunchFlags flags, string[] envp) throws GLib.Error; public static GLib.Quark error_quark (); diff --git a/vapi/gnome-keyring-1.vapi b/vapi/gnome-keyring-1.vapi index 01a298719..87db857f7 100644 --- a/vapi/gnome-keyring-1.vapi +++ b/vapi/gnome-keyring-1.vapi @@ -5,14 +5,14 @@ namespace GnomeKeyring { [Compact] [CCode (copy_function = "gnome_keyring_access_control_copy", cheader_filename = "gnome-keyring.h")] public class AccessControl { - public unowned GnomeKeyring.AccessControl copy (); + public GnomeKeyring.AccessControl copy (); [CCode (has_construct_function = false)] public AccessControl (GnomeKeyring.ApplicationRef application, GnomeKeyring.AccessType types_allowed); } [Compact] [CCode (copy_function = "gnome_keyring_application_ref_copy", cheader_filename = "gnome-keyring.h")] public class ApplicationRef { - public unowned GnomeKeyring.ApplicationRef copy (); + public GnomeKeyring.ApplicationRef copy (); [CCode (has_construct_function = false)] public ApplicationRef (); } @@ -22,7 +22,7 @@ namespace GnomeKeyring { public uint len; public void append_string (string name, string value); public void append_uint32 (string name, uint32 value); - public unowned GnomeKeyring.AttributeList copy (); + public GnomeKeyring.AttributeList copy (); public GnomeKeyring.Attribute index (int i); } [Compact] @@ -37,7 +37,7 @@ namespace GnomeKeyring { [Compact] [CCode (copy_function = "gnome_keyring_info_copy", cheader_filename = "gnome-keyring.h")] public class Info { - public unowned GnomeKeyring.Info copy (); + public GnomeKeyring.Info copy (); public ulong get_ctime (); public bool get_is_locked (); public bool get_lock_on_idle (); @@ -49,7 +49,7 @@ namespace GnomeKeyring { [Compact] [CCode (copy_function = "gnome_keyring_item_info_copy", cheader_filename = "gnome-keyring.h")] public class ItemInfo { - public unowned GnomeKeyring.ItemInfo copy (); + public GnomeKeyring.ItemInfo copy (); public ulong get_ctime (); public unowned string get_display_name (); public ulong get_mtime (); diff --git a/vapi/gnome-vfs-2.0.vapi b/vapi/gnome-vfs-2.0.vapi index 0f80cf772..888525d87 100644 --- a/vapi/gnome-vfs-2.0.vapi +++ b/vapi/gnome-vfs-2.0.vapi @@ -244,7 +244,7 @@ namespace GnomeVFS { public weak string name; public void* reserved1; public weak GLib.List supported_uri_schemes; - public unowned GnomeVFS.MimeApplication copy (); + public GnomeVFS.MimeApplication copy (); public bool equal (GnomeVFS.MimeApplication app_b); [CCode (has_construct_function = false)] public MimeApplication.from_desktop_id (string id); diff --git a/vapi/goocanvas.vapi b/vapi/goocanvas.vapi index 52bc2d3d7..0d75a8b2c 100644 --- a/vapi/goocanvas.vapi +++ b/vapi/goocanvas.vapi @@ -427,7 +427,7 @@ namespace Goo { public class CanvasStyle : GLib.Object { public weak Goo.CanvasStyle parent; public weak GLib.Array properties; - public unowned Goo.CanvasStyle copy (); + public Goo.CanvasStyle copy (); public unowned Goo.CanvasStyle get_parent (); public GLib.Value get_property (GLib.Quark property_id); [CCode (has_construct_function = false)] diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi index a31e78193..5d3cc8fbe 100644 --- a/vapi/gtk+-2.0.vapi +++ b/vapi/gtk+-2.0.vapi @@ -1745,7 +1745,7 @@ namespace Gtk { [Compact] [CCode (copy_function = "gtk_icon_info_copy", type_id = "GTK_TYPE_ICON_INFO", cheader_filename = "gtk/gtk.h")] public class IconInfo { - public unowned Gtk.IconInfo copy (); + public Gtk.IconInfo copy (); [CCode (has_construct_function = false)] public IconInfo.for_pixbuf (Gtk.IconTheme icon_theme, Gdk.Pixbuf pixbuf); public bool get_attach_points (Gdk.Point[] points); @@ -1761,7 +1761,7 @@ namespace Gtk { [CCode (ref_function = "gtk_icon_set_ref", unref_function = "gtk_icon_set_unref", type_id = "GTK_TYPE_ICON_SET", cheader_filename = "gtk/gtk.h")] public class IconSet { public void add_source (Gtk.IconSource source); - public unowned Gtk.IconSet copy (); + public Gtk.IconSet copy (); [CCode (has_construct_function = false)] public IconSet.from_pixbuf (Gdk.Pixbuf pixbuf); public void get_sizes (Gtk.IconSize[] sizes); @@ -1772,7 +1772,7 @@ namespace Gtk { [Compact] [CCode (copy_function = "gtk_icon_source_copy", type_id = "GTK_TYPE_ICON_SOURCE", cheader_filename = "gtk/gtk.h")] public class IconSource { - public unowned Gtk.IconSource copy (); + public Gtk.IconSource copy (); public Gtk.TextDirection get_direction (); public bool get_direction_wildcarded (); public unowned string get_filename (); @@ -2575,7 +2575,7 @@ namespace Gtk { } [CCode (cheader_filename = "gtk/gtk.h")] public class PageSetup : GLib.Object { - public unowned Gtk.PageSetup copy (); + public Gtk.PageSetup copy (); [CCode (has_construct_function = false)] public PageSetup.from_file (string file_name) throws GLib.Error; [CCode (has_construct_function = false)] @@ -2651,7 +2651,7 @@ namespace Gtk { [Compact] [CCode (copy_function = "gtk_paper_size_copy", type_id = "GTK_TYPE_PAPER_SIZE", cheader_filename = "gtk/gtk.h")] public class PaperSize { - public unowned Gtk.PaperSize copy (); + public Gtk.PaperSize copy (); [CCode (has_construct_function = false)] public PaperSize.custom (string name, string display_name, double width, double height, Gtk.Unit unit); [CCode (has_construct_function = false)] @@ -2770,7 +2770,7 @@ namespace Gtk { } [CCode (cheader_filename = "gtk/gtk.h")] public class PrintSettings : GLib.Object { - public unowned Gtk.PrintSettings copy (); + public Gtk.PrintSettings copy (); public void @foreach (Gtk.PrintSettingsFunc func); [CCode (has_construct_function = false)] public PrintSettings.from_file (string file_name) throws GLib.Error; @@ -3056,7 +3056,7 @@ namespace Gtk { public weak Gdk.Color[] text; public int xthickness; public int ythickness; - public unowned Gtk.RcStyle copy (); + public Gtk.RcStyle copy (); [NoWrapper] public virtual unowned Gtk.RcStyle create_rc_style (); [NoWrapper] @@ -3912,7 +3912,7 @@ namespace Gtk { public int right_margin; public weak Pango.TabArray tabs; public Gtk.WrapMode wrap_mode; - public unowned Gtk.TextAttributes copy (); + public Gtk.TextAttributes copy (); public void copy_values (Gtk.TextAttributes dest); [CCode (has_construct_function = false)] public TextAttributes (); @@ -4588,7 +4588,7 @@ namespace Gtk { [Immutable] [CCode (copy_function = "gtk_tree_row_reference_copy", type_id = "GTK_TYPE_TREE_ROW_REFERENCE", cheader_filename = "gtk/gtk.h")] public class TreeRowReference { - public unowned Gtk.TreeRowReference copy (); + public Gtk.TreeRowReference copy (); public static void deleted (GLib.Object proxy, Gtk.TreePath path); public unowned Gtk.TreeModel get_model (); public Gtk.TreePath get_path (); diff --git a/vapi/gtksourceview-2.0.vapi b/vapi/gtksourceview-2.0.vapi index e7c0f8df2..de6972d13 100644 --- a/vapi/gtksourceview-2.0.vapi +++ b/vapi/gtksourceview-2.0.vapi @@ -138,7 +138,7 @@ namespace Gtk { } [CCode (cheader_filename = "gtksourceview/gtksourceview.h")] public class SourceStyle : GLib.Object { - public unowned Gtk.SourceStyle copy (); + public Gtk.SourceStyle copy (); [NoAccessorMethod] public string background { owned get; construct; } [NoAccessorMethod] diff --git a/vapi/liboobs-1.vapi b/vapi/liboobs-1.vapi index b7788c04f..89e44c9b3 100644 --- a/vapi/liboobs-1.vapi +++ b/vapi/liboobs-1.vapi @@ -183,7 +183,7 @@ namespace Oobs { public class ListIter { public void* data; public uint stamp; - public unowned Oobs.ListIter copy (); + public Oobs.ListIter copy (); public static bool next (Oobs.List list, Oobs.ListIter iter); } [CCode (cheader_filename = "oobs/oobs.h")] diff --git a/vapi/libsoup-2.2.vapi b/vapi/libsoup-2.2.vapi index 3bd57d35a..939c336c8 100644 --- a/vapi/libsoup-2.2.vapi +++ b/vapi/libsoup-2.2.vapi @@ -344,7 +344,7 @@ namespace Soup { public weak Soup.Protocol protocol; public weak string query; public weak string user; - public unowned Soup.Uri copy (); + public Soup.Uri copy (); public unowned Soup.Uri copy_root (); public static void decode (string part); public static string encode (string part, string escape_extra); diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi index 0c37b95b0..a08d4823c 100644 --- a/vapi/libsoup-2.4.vapi +++ b/vapi/libsoup-2.4.vapi @@ -99,7 +99,7 @@ namespace Soup { public class Buffer { public weak string data; public size_t length; - public unowned Soup.Buffer copy (); + public Soup.Buffer copy (); public void* get_owner (); [CCode (has_construct_function = false)] public Buffer (Soup.MemoryUse use, void* data, size_t length); @@ -132,7 +132,7 @@ namespace Soup { public bool secure; public weak string value; public bool applies_to_uri (Soup.URI uri); - public unowned Soup.Cookie copy (); + public Soup.Cookie copy (); public bool equal (Soup.Cookie cookie2); [CCode (has_construct_function = false)] public Cookie (string name, string value, string domain, string path, int max_age); @@ -180,7 +180,7 @@ namespace Soup { public int second; public bool utc; public int year; - public unowned Soup.Date copy (); + public Soup.Date copy (); [CCode (has_construct_function = false)] public Date.from_now (int offset_seconds); [CCode (has_construct_function = false)] diff --git a/vapi/packages/gconf-2.0/gconf-2.0.metadata b/vapi/packages/gconf-2.0/gconf-2.0.metadata index 4cfc82057..703381204 100644 --- a/vapi/packages/gconf-2.0/gconf-2.0.metadata +++ b/vapi/packages/gconf-2.0/gconf-2.0.metadata @@ -8,6 +8,9 @@ gconf_client_get_entry.locale nullable="1" gconf_client_notify_add.func transfer_ownership="1" gconf_client_notify_add.destroy_notify hidden="1" gconf_client_get_without_default transfer_ownership="1" +gconf_entry_copy transfer_ownership="1" +gconf_schema_copy transfer_ownership="1" +gconf_value_copy transfer_ownership="1" # deprecated and useless gconf_init hidden="1" gconf_meta_info_mod_time name="get_mod_time" diff --git a/vapi/packages/gdk-2.0/gdk-2.0.metadata b/vapi/packages/gdk-2.0/gdk-2.0.metadata index 3443296af..2eec9b088 100644 --- a/vapi/packages/gdk-2.0/gdk-2.0.metadata +++ b/vapi/packages/gdk-2.0/gdk-2.0.metadata @@ -73,6 +73,7 @@ gdk_property_change.data no_array_length="1" gdk_property_get.actual_property_type is_out="1" GdkRectangle is_value_type="1" gdk_rectangle_union.dest is_out="1" +gdk_region_copy transfer_ownership="1" gdk_region_get_clipbox.rectangle is_out="1" gdk_region_rectangle transfer_ownership="1" gdk_region_polygon transfer_ownership="1" diff --git a/vapi/packages/gio-2.0/gio-2.0.metadata b/vapi/packages/gio-2.0/gio-2.0.metadata index 5bccf8e6d..fc102482e 100644 --- a/vapi/packages/gio-2.0/gio-2.0.metadata +++ b/vapi/packages/gio-2.0/gio-2.0.metadata @@ -105,3 +105,4 @@ g_app_info_launch_uris.uris nullable="1" g_loadable_icon_load.type nullable="1" g_loadable_icon_load_finish.type nullable="1" +g_srv_target_copy transfer_ownership="1" \ No newline at end of file diff --git a/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata b/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata index 45efcf45f..8aab809b5 100644 --- a/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata +++ b/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata @@ -1,4 +1,5 @@ Gnome cheader_filename="libgnome/gnome-desktop-item.h" +gnome_desktop_item_copy transfer_ownership="1" gnome_desktop_item_drop_uri_list_with_env.envp is_array="1" gnome_desktop_item_get_strings is_array="1" array_null_terminated="1" gnome_desktop_item_launch_with_env.envp is_array="1" diff --git a/vapi/packages/gnome-keyring-1/gnome-keyring-1.metadata b/vapi/packages/gnome-keyring-1/gnome-keyring-1.metadata index fcb534e6e..0a63481ed 100644 --- a/vapi/packages/gnome-keyring-1/gnome-keyring-1.metadata +++ b/vapi/packages/gnome-keyring-1/gnome-keyring-1.metadata @@ -184,3 +184,9 @@ gnome_keyring_item_grant_access_rights.data hidden="1" gnome_keyring_item_grant_access_rights.keyring nullable="1" gnome_keyring_item_grant_access_rights.destroy_data hidden="1" gnome_keyring_item_grant_access_rights_sync.keyring nullable="1" + +gnome_keyring_access_control_copy transfer_ownership="1" +gnome_keyring_application_ref_copy transfer_ownership="1" +gnome_keyring_attribute_list_copy transfer_ownership="1" +gnome_keyring_info_copy transfer_ownership="1" +gnome_keyring_item_info_copy transfer_ownership="1" diff --git a/vapi/packages/gnome-vfs-2.0/gnome-vfs-2.0.metadata b/vapi/packages/gnome-vfs-2.0/gnome-vfs-2.0.metadata index b52807a8b..6b4372390 100644 --- a/vapi/packages/gnome-vfs-2.0/gnome-vfs-2.0.metadata +++ b/vapi/packages/gnome-vfs-2.0/gnome-vfs-2.0.metadata @@ -6,6 +6,7 @@ GnomeVFSFileSize hidden="1" GnomeVFSMimeApplication cheader_filename="libgnomevfs/gnome-vfs-mime-handlers.h" GnomeVFSMimeApplication.priv hidden="1" GnomeVFSMimeApplication.requires_terminal hidden="1" +gnome_vfs_mime_application_copy transfer_ownership="1" GnomeVFSVolume type_check_function="GNOME_IS_VFS_VOLUME" GnomeVFSVolumeMonitor type_check_function="GNOME_IS_VFS_VOLUME_MONITOR" gnome_vfs_async_xfer.update_callback_data hidden="1" diff --git a/vapi/packages/goocanvas/goocanvas.metadata b/vapi/packages/goocanvas/goocanvas.metadata index b966b04c6..e8b60a283 100644 --- a/vapi/packages/goocanvas/goocanvas.metadata +++ b/vapi/packages/goocanvas/goocanvas.metadata @@ -21,6 +21,7 @@ goo_canvas_polyline_new hidden="1" goo_canvas_polyline_model_new hidden="1" goo_canvas_rect_new hidden="1" goo_canvas_rect_model_new hidden="1" +goo_canvas_style_copy transfer_ownership="1" goo_canvas_table_new hidden="1" goo_canvas_table_model_new hidden="1" goo_canvas_text_new hidden="1" diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata index 6d7be66c4..a1eeaf689 100644 --- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata +++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata @@ -141,11 +141,14 @@ GtkHandleBox::child_detached hidden="1" gtk_hscale_new.adjustment nullable="1" gtk_get_current_event transfer_ownership="1" gtk_get_option_group transfer_ownership="1" +gtk_icon_info_copy transfer_ownership="1" gtk_icon_info_get_embedded_rect.rectangle is_out="1" gtk_icon_view_get_cursor.path transfer_ownership="1" 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_set_copy transfer_ownership="1" +gtk_icon_source_copy transfer_ownership="1" GtkIconView::item_activated has_emitter="1" gtk_icon_view_select_all hidden="1" experimental="1" gtk_icon_view_selected_foreach.data hidden="1" @@ -244,6 +247,7 @@ gtk_notebook_set_tab_label.tab_label nullable="1" gtk_notebook_set_group.group nullable="1" gtk_notebook_page_num hidden="1" GtkObject::destroy has_emitter="1" +gtk_page_setup_copy transfer_ownership="1" gtk_parse_args.argv is_array="1" gtk_paint_arrow.area nullable="1" gtk_paint_arrow.widget nullable="1" @@ -305,7 +309,9 @@ gtk_paint_tab.detail nullable="1" gtk_paint_vline.area nullable="1" gtk_paint_vline.widget nullable="1" gtk_paint_vline.detail nullable="1" +gtk_paper_size_copy transfer_ownership="1" GtkPlug::embedded hidden="1" +gtk_print_settings_copy transfer_ownership="1" gtk_printer_accepts_pdf hidden="1" experimental="1" gtk_printer_accepts_ps hidden="1" experimental="1" gtk_printer_is_virtual hidden="1" experimental="1" @@ -331,6 +337,7 @@ GtkRequisition is_value_type="1" gtk_rc_get_style_by_paths nullable="1" gtk_rc_get_style_by_paths.widget_path nullable="1" gtk_rc_get_style_by_paths.class_path nullable="1" +gtk_rc_style_copy transfer_ownership="1" gtk_scale_button_new.icons is_array="1" no_array_length="1" gtk_scale_button_set_icons.icons is_array="1" no_array_length="1" gtk_scale_draw_value hidden="1" @@ -374,6 +381,7 @@ GtkTargetEntry is_value_type="1" gtk_target_list_add_table.targets is_array="1" gtk_target_list_new.targets is_array="1" gtk_target_list_new.ntargets hidden="1" +gtk_text_attributes_copy transfer_ownership="1" GtkTextBuffer::apply_tag has_emitter="1" GtkTextBuffer::begin_user_action has_emitter="1" GtkTextBuffer::end_user_action has_emitter="1" @@ -436,6 +444,7 @@ gtk_tool_item_toolbar_reconfigured hidden="1" GtkToolItem::set_tooltip hidden="1" GtkTreeIter is_value_type="1" use_const="0" GtkTreeRowReference is_value_type="0" is_immutable="1" +gtk_tree_row_reference_copy transfer_ownership="1" gtk_tree_model_filter_new.root nullable="1" gtk_tree_model_get ellipsis="1" sentinel="-1" gtk_tree_model_get_iter.iter is_out="1" diff --git a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata index 9370abd3b..1956e1e97 100644 --- a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata +++ b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata @@ -20,6 +20,7 @@ gtk_source_language_manager_set_search_path.dirs is_array="1" nullable="1" array GtkSourcePrintCompositor cheader_filename="gtksourceview/gtksourceprintcompositor.h" GtkSourceSearchFlags cheader_filename="gtksourceview/gtksourceiter.h" GtkSourceStyleSchemeManager cheader_filename="gtksourceview/gtksourcestyleschememanager.h" +gtk_source_style_copy transfer_ownership="1" gtk_source_style_scheme_manager_get_search_path is_array="1" array_null_terminated="1" gtk_source_style_scheme_manager_get_scheme_ids is_array="1" array_null_terminated="1" GtkTextRegion hidden="1" diff --git a/vapi/packages/liboobs-1/liboobs-1.metadata b/vapi/packages/liboobs-1/liboobs-1.metadata index ac582f408..a5b4838ca 100644 --- a/vapi/packages/liboobs-1/liboobs-1.metadata +++ b/vapi/packages/liboobs-1/liboobs-1.metadata @@ -1,4 +1,4 @@ Oobs cheader_filename="oobs/oobs.h" gid_t name="long" uid_t name="long" - +oobs_list_iter_copy transfer_ownership="1" diff --git a/vapi/packages/libsoup-2.2/libsoup-2.2.metadata b/vapi/packages/libsoup-2.2/libsoup-2.2.metadata index 7b809895f..20aaf11a1 100644 --- a/vapi/packages/libsoup-2.2/libsoup-2.2.metadata +++ b/vapi/packages/libsoup-2.2/libsoup-2.2.metadata @@ -29,6 +29,7 @@ soup_session_queue_message.msg transfer_ownership="1" SoupSoap hidden="1" SoupSoapMessage hidden="1" SoupSoapResponse hidden="1" +soup_uri_copy transfer_ownership="1" soup_uri_encode transfer_ownership="1" soup_xml_real_node hidden="1" SoupXmlrpc hidden="1" diff --git a/vapi/packages/libsoup-2.4/libsoup-2.4.metadata b/vapi/packages/libsoup-2.4/libsoup-2.4.metadata index b6a7d90a2..c7ab3afcb 100644 --- a/vapi/packages/libsoup-2.4/libsoup-2.4.metadata +++ b/vapi/packages/libsoup-2.4/libsoup-2.4.metadata @@ -4,6 +4,9 @@ soup_auth_is_authenticated hidden="1" soup_auth_is_for_proxy hidden="1" SoupAuthDomain:add-path hidden="1" SoupAuthDomain:remove-path hidden="1" +soup_buffer_copy transfer_ownership="1" +soup_cookie_copy transfer_ownership="1" +soup_date_copy transfer_ownership="1" SoupMessage::finished has_emitter="1" SoupMessage::got_body has_emitter="1" SoupMessage::got_chunk has_emitter="1" diff --git a/vapi/packages/poppler-glib/poppler-glib.metadata b/vapi/packages/poppler-glib/poppler-glib.metadata index d03d8665b..871e8dc4b 100644 --- a/vapi/packages/poppler-glib/poppler-glib.metadata +++ b/vapi/packages/poppler-glib/poppler-glib.metadata @@ -1,5 +1,14 @@ Poppler cheader_filename="poppler.h" +poppler_action_copy transfer_ownership="1" +poppler_dest_copy transfer_ownership="1" poppler_document_new_from_file.password nullable="1" +poppler_fonts_iter_copy transfer_ownership="1" +poppler_form_field_mapping_copy transfer_ownership="1" +poppler_image_mapping_copy transfer_ownership="1" +poppler_index_iter_copy transfer_ownership="1" +poppler_link_mapping_copy transfer_ownership="1" poppler_page_get_size.width is_out="1" poppler_page_get_size.height is_out="1" +poppler_page_transition_copy transfer_ownership="1" +poppler_rectangle_copy transfer_ownership="1" diff --git a/vapi/packages/webkit-1.0/webkit-1.0.metadata b/vapi/packages/webkit-1.0/webkit-1.0.metadata index a6c2cecd6..91845ebb0 100644 --- a/vapi/packages/webkit-1.0/webkit-1.0.metadata +++ b/vapi/packages/webkit-1.0/webkit-1.0.metadata @@ -1,5 +1,6 @@ WebKit cheader_filename="webkit/webkit.h" lower_case_cprefix="webkit_" webkit_web_frame_get_global_context hidden="1" +webkit_web_settings_copy transfer_ownership="1" WebKitWebView::copy_clipboard has_emitter="1" WebKitWebView::cut_clipboard has_emitter="1" WebKitWebView::hovering_over_link.p0 nullable="1" diff --git a/vapi/poppler-glib.vapi b/vapi/poppler-glib.vapi index 2edf7d87f..ae52b396a 100644 --- a/vapi/poppler-glib.vapi +++ b/vapi/poppler-glib.vapi @@ -13,7 +13,7 @@ namespace Poppler { public weak Poppler.ActionNamed named; public Poppler.ActionType type; public weak Poppler.ActionUri uri; - public unowned Poppler.Action copy (); + public Poppler.Action copy (); } [Compact] [CCode (cheader_filename = "poppler.h")] @@ -89,7 +89,7 @@ namespace Poppler { public double top; public Poppler.DestType type; public double zoom; - public unowned Poppler.Dest copy (); + public Poppler.Dest copy (); } [CCode (cheader_filename = "poppler.h")] public class Document : GLib.Object { @@ -146,7 +146,7 @@ namespace Poppler { [Compact] [CCode (copy_function = "poppler_fonts_iter_copy", type_id = "POPPLER_TYPE_FONTS_ITER", cheader_filename = "poppler.h")] public class FontsIter { - public unowned Poppler.FontsIter copy (); + public Poppler.FontsIter copy (); public unowned string get_file_name (); public Poppler.FontType get_font_type (); public unowned string get_full_name (); @@ -191,7 +191,7 @@ namespace Poppler { public class FormFieldMapping { public weak Poppler.Rectangle area; public weak Poppler.FormField field; - public unowned Poppler.FormFieldMapping copy (); + public Poppler.FormFieldMapping copy (); [CCode (has_construct_function = false)] public FormFieldMapping (); } @@ -200,14 +200,14 @@ namespace Poppler { public class ImageMapping { public weak Poppler.Rectangle area; public weak Gdk.Pixbuf image; - public unowned Poppler.ImageMapping copy (); + public Poppler.ImageMapping copy (); [CCode (has_construct_function = false)] public ImageMapping (); } [Compact] [CCode (copy_function = "poppler_index_iter_copy", type_id = "POPPLER_TYPE_INDEX_ITER", cheader_filename = "poppler.h")] public class IndexIter { - public unowned Poppler.IndexIter copy (); + public Poppler.IndexIter copy (); public unowned Poppler.Action get_action (); public unowned Poppler.IndexIter get_child (); public bool is_open (); @@ -220,7 +220,7 @@ namespace Poppler { public class LinkMapping { public weak Poppler.Action action; public weak Poppler.Rectangle area; - public unowned Poppler.LinkMapping copy (); + public Poppler.LinkMapping copy (); [CCode (has_construct_function = false)] public LinkMapping (); } @@ -268,7 +268,7 @@ namespace Poppler { public bool rectangular; public double scale; public Poppler.PageTransitionType type; - public unowned Poppler.PageTransition copy (); + public Poppler.PageTransition copy (); [CCode (has_construct_function = false)] public PageTransition (); } @@ -279,7 +279,7 @@ namespace Poppler { public double x2; public double y1; public double y2; - public unowned Poppler.Rectangle copy (); + public Poppler.Rectangle copy (); [CCode (has_construct_function = false)] public Rectangle (); } diff --git a/vapi/webkit-1.0.vapi b/vapi/webkit-1.0.vapi index 5a013a822..4b07f611d 100644 --- a/vapi/webkit-1.0.vapi +++ b/vapi/webkit-1.0.vapi @@ -144,7 +144,7 @@ namespace WebKit { } [CCode (cheader_filename = "webkit/webkit.h")] public class WebSettings : GLib.Object { - public unowned WebKit.WebSettings copy (); + public WebKit.WebSettings copy (); [CCode (has_construct_function = false)] public WebSettings (); [NoAccessorMethod]