From b45f784393c3f64faaa0c0f747e3574f6a96625f Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Sun, 25 Nov 2007 14:02:33 +0000 Subject: [PATCH] mark GtkTargetEntry as value-type 2007-11-25 Juerg Billeter * vapi/packages/gtk+-2.0/gtk+-2.0.metadata: mark GtkTargetEntry as value-type * vapi/gtk+-2.0.vapi: regenerated svn path=/trunk/; revision=718 --- ChangeLog | 7 +++++++ vapi/gtk+-2.0.vapi | 23 +++++++++++++---------- vapi/packages/gtk+-2.0/gtk+-2.0.metadata | 4 ++++ 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9170bda..da96261 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-11-25 Jürg Billeter + + * vapi/packages/gtk+-2.0/gtk+-2.0.metadata: mark GtkTargetEntry as + value-type + + * vapi/gtk+-2.0.vapi: regenerated + 2007-11-24 Jürg Billeter * vapigen/valagidlparser.vala: fix is_out support for parameters diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi index 45140d7..ea863d0 100644 --- a/vapi/gtk+-2.0.vapi +++ b/vapi/gtk+-2.0.vapi @@ -1592,12 +1592,6 @@ namespace Gtk { public uint empty; } [CCode (cheader_filename = "gtk/gtk.h")] - public class TargetEntry { - public weak string target; - public uint flags; - public uint info; - } - [CCode (cheader_filename = "gtk/gtk.h")] public class TargetPair { public Gdk.Atom target; public uint flags; @@ -1822,11 +1816,13 @@ namespace Gtk { public void add (Gdk.Atom target, uint flags, uint info); public void add_image_targets (uint info, bool writable); public void add_rich_text_targets (uint info, bool deserializable, Gtk.TextBuffer buffer); - public void add_table (Gtk.TargetEntry targets, uint ntargets); + [NoArrayLength] + public void add_table (Gtk.TargetEntry[] targets, uint ntargets); public void add_text_targets (uint info); public void add_uri_targets (uint info); public bool find (Gdk.Atom target, uint info); - public TargetList (Gtk.TargetEntry targets, uint ntargets); + [NoArrayLength] + public TargetList (Gtk.TargetEntry[] targets, uint ntargets); public void remove (Gdk.Atom target); } [CCode (ref_function = "gtk_text_attributes_ref", unref_function = "gtk_text_attributes_unref", cheader_filename = "gtk/gtk.h")] @@ -6875,6 +6871,12 @@ namespace Gtk { public int value; } [CCode (cheader_filename = "gtk/gtk.h")] + public struct TargetEntry { + public weak string target; + public uint flags; + public uint info; + } + [CCode (cheader_filename = "gtk/gtk.h")] public struct ToggleActionEntry { public weak string name; public weak string stock_id; @@ -7427,7 +7429,8 @@ namespace Gtk { public static weak GLib.Scanner rc_scanner_new (); public static void rc_set_default_files (string filenames); public static void selection_add_target (Gtk.Widget widget, Gdk.Atom selection, Gdk.Atom target, uint info); - public static void selection_add_targets (Gtk.Widget widget, Gdk.Atom selection, Gtk.TargetEntry targets, uint ntargets); + [NoArrayLength] + public static void selection_add_targets (Gtk.Widget widget, Gdk.Atom selection, Gtk.TargetEntry[] targets, uint ntargets); public static bool selection_clear (Gtk.Widget widget, Gdk.EventSelection event); public static void selection_clear_targets (Gtk.Widget widget, Gdk.Atom selection); public static bool selection_convert (Gtk.Widget widget, Gdk.Atom selection, Gdk.Atom target, uint time_); @@ -7456,7 +7459,7 @@ namespace Gtk { public static void stock_set_translate_func (string domain, Gtk.TranslateFunc func, pointer data, Gtk.DestroyNotify notify); [NoArrayLength] public static void target_table_free (Gtk.TargetEntry[] targets, int n_targets); - public static weak Gtk.TargetEntry target_table_new_from_list (Gtk.TargetList list, int n_targets); + public static Gtk.TargetEntry target_table_new_from_list (Gtk.TargetList list, int n_targets); [NoArrayLength] public static bool targets_include_image (Gdk.Atom[] targets, int n_targets, bool writable); [NoArrayLength] diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata index 27c8758..59550fb 100644 --- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata +++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata @@ -80,6 +80,7 @@ GtkRadioActionEntry is_value_type="1" GtkRequisition is_value_type="1" gtk_scale_button_new.icons is_array="1" gtk_scale_button_set_icons.icons is_array="1" +gtk_selection_add_targets.targets is_array="1" gtk_show_about_dialog ellipsis="1" GtkStyle.fg weak="0" is_array="1" GtkStyle.bg weak="0" is_array="1" @@ -98,6 +99,9 @@ GtkStyle.text_gc weak="0" is_array="1" GtkStyle.base_gc weak="0" is_array="1" GtkStyle.text_aa_gc weak="0" is_array="1" GtkStyle.bg_pixmap weak="0" is_array="1" +GtkTargetEntry is_value_type="1" +gtk_target_list_add_table.targets is_array="1" +gtk_target_list_new.targets is_array="1" GtkTextBuffer::apply_tag has_emitter="1" GtkTextBuffer::begin_user_action has_emitter="1" GtkTextBuffer::end_user_action has_emitter="1" -- 2.7.4