Commit 83895282 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

write dup_function and free_function attribute values recognize ref,

2007-08-24  Juerg Billeter  <j@bitron.ch>

	* vala/valainterfacewriter.vala, vala/valastruct.vala,
	  gobject/valacodegenerator.vala: write dup_function and free_function
	  attribute values
	* vapigen/valagidlparser.vala: recognize ref, unref, and free functions,
	  GType arrays, and out parameters
	* vapi/glib-2.0.vala: mark Closure as reference type
	* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gio-standalone.vala,
	  vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
	  vapi/gtksourceview-2.0.vala, vapi/libsoup-2.2.vala, vapi/pango.vala,
	  vapi/vte.vala: regenerated
	* vapi/packages/atk/: update to ATK 1.19.6
	* vapi/packages/gdk-2.0/, vapi/packages/gtk+-2.0/: update to GTK+ 2.11.6
	* vapi/packages/gstreamer-0.10/: update to GStreamer 0.10.14
	* vapi/packages/gtksourceview-2.0/: update to GtkSourceView 1.90.3
	* vapi/packages/pango/: update to Pango 1.18.0

svn path=/trunk/; revision=498
parent b9732cdd
2007-08-24 Jürg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala, vala/valastruct.vala,
gobject/valacodegenerator.vala: write dup_function and free_function
attribute values
* vapigen/valagidlparser.vala: recognize ref, unref, and free functions,
GType arrays, and out parameters
* vapi/glib-2.0.vala: mark Closure as reference type
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gio-standalone.vala,
vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
vapi/gtksourceview-2.0.vala, vapi/libsoup-2.2.vala, vapi/pango.vala,
vapi/vte.vala: regenerated
* vapi/packages/atk/: update to ATK 1.19.6
* vapi/packages/gdk-2.0/, vapi/packages/gtk+-2.0/: update to GTK+ 2.11.6
* vapi/packages/gstreamer-0.10/: update to GStreamer 0.10.14
* vapi/packages/gtksourceview-2.0/: update to GtkSourceView 1.90.3
* vapi/packages/pango/: update to Pango 1.18.0
2007-08-21 Jürg Billeter <j@bitron.ch>
* vapi/libxml-2.0.vala: fix typo, patch by Piotr Skamruk
......
......@@ -367,6 +367,10 @@ public class Vala.CodeGenerator : CodeVisitor {
new CCodeMemberAccess.pointer (
new CCodeMemberAccess.pointer (new CCodeIdentifier ("self"), "priv"),
get_symbol_lock_name (m)));
if (mutex_type.data_type.get_free_function () == null) {
Report.error (mutex_type.data_type.source_reference, "The type `%s` doesn't contain a free function".printf (mutex_type.data_type.get_full_name ()));
return;
}
fc.add_argument (new CCodeIdentifier (mutex_type.data_type.get_free_function ()));
if (instance_dispose_fragment != null) {
instance_dispose_fragment.append (new CCodeExpressionStatement (fc));
......@@ -945,6 +949,9 @@ public class Vala.CodeGenerator : CodeVisitor {
Report.warning (type.source_reference, "duplicating %s instance, use weak variable or explicitly invoke copy method".printf (type.data_type.name));
}
dup_function = type.data_type.get_dup_function ();
if (dup_function == null) {
Report.error (type.data_type.source_reference, "The type `%s` doesn't contain a copy function".printf (type.data_type.get_full_name ()));
}
}
return new CCodeIdentifier (dup_function);
} else if (type.type_parameter != null && current_type_symbol is Class) {
......@@ -963,6 +970,10 @@ public class Vala.CodeGenerator : CodeVisitor {
} else {
unref_function = type.data_type.get_free_function ();
}
if (unref_function == null) {
Report.error (type.data_type.source_reference, "The type `%s` doesn't contain a free function".printf (type.data_type.get_full_name ()));
return null;
}
return new CCodeIdentifier (unref_function);
} else if (type.type_parameter != null && current_type_symbol is Class) {
string func_name = "%s_destroy_func".printf (type.type_parameter.name.down ());
......
......@@ -160,7 +160,24 @@ public class Vala.InterfaceWriter : CodeVisitor {
if (st.is_reference_type ()) {
write_indent ();
write_string ("[ReferenceType]");
write_string ("[ReferenceType");
string copy_func = st.get_dup_function ();
string free_func = st.get_free_function ();
string default_free_func = st.get_default_free_function ();
if (copy_func != null || (free_func != null && (default_free_func == null || default_free_func != free_func))) {
write_string (" (");
if (copy_func != null) {
write_string ("dup_function = \"%s\"".printf (copy_func));
if (free_func != null) {
write_string (", ");
}
}
if (free_func != null) {
write_string ("free_function = \"%s\"".printf (free_func));
}
write_string (")");
}
write_string ("]");
}
write_indent ();
......
......@@ -320,28 +320,28 @@ public class Vala.Struct : DataType {
}
public override string get_dup_function () {
if (dup_function == null) {
Report.error (source_reference, "The type `%s` doesn't contain a copy function".printf (get_full_name ()));
}
return dup_function;
}
public void set_dup_function (string! name) {
this.dup_function = name;
}
public string get_default_free_function () {
if (default_construction_method != null) {
return get_lower_case_cprefix () + "free";
}
return null;
}
public override string get_free_function () {
if (free_function == null) {
if (default_construction_method != null) {
free_function = get_lower_case_cprefix () + "free";
} else {
Report.error (source_reference, "The type `%s` doesn't contain a free function".printf (get_full_name ()));
}
free_function = get_default_free_function ();
}
return free_function;
}
private void set_free_function (string! name) {
public void set_free_function (string! name) {
this.free_function = name;
}
......
......@@ -655,6 +655,7 @@ namespace Atk {
public static weak Atk.Object get_root ();
public static weak string get_toolkit_name ();
public static weak string get_toolkit_version ();
public static weak string get_version ();
public static void remove_focus_tracker (uint tracker_id);
public static void remove_global_event_listener (uint listener_id);
public static void remove_key_event_listener (uint listener_id);
......
......@@ -683,7 +683,7 @@ namespace Gdk {
[CCode (cname = "gdk_draw_glyphs")]
public virtual void draw_glyphs (Gdk.GC gc, Pango.Font font, int x, int y, Pango.GlyphString glyphs);
[CCode (cname = "gdk_draw_glyphs_transformed")]
public virtual void draw_glyphs_transformed (Gdk.GC gc, Pango.Matrix matrix, Pango.Font font, int x, int y, Pango.GlyphString glyphs);
public virtual void draw_glyphs_transformed (Gdk.GC gc, out Pango.Matrix matrix, Pango.Font font, int x, int y, Pango.GlyphString glyphs);
[NoArrayLength]
[CCode (cname = "gdk_draw_gray_image")]
public void draw_gray_image (Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, uchar[] buf, int rowstride);
......@@ -804,6 +804,7 @@ namespace Gdk {
public bool get_entries_for_keyval (uint keyval, Gdk.KeymapKey[] keys, int n_keys);
public static weak Gdk.Keymap get_for_display (Gdk.Display display);
public static GLib.Type get_type ();
public bool have_bidi_layouts ();
public uint lookup_key (Gdk.KeymapKey key);
public bool translate_keyboard_state (uint hardware_keycode, Gdk.ModifierType state, int group, uint keyval, int effective_group, int level, Gdk.ModifierType consumed_modifiers);
public signal void direction_changed ();
......@@ -824,6 +825,7 @@ namespace Gdk {
[CCode (cheader_filename = "gdk/gdk.h")]
public class Pixbuf : GLib.Object {
public weak Gdk.Pixbuf add_alpha (bool substitute_color, uchar r, uchar g, uchar b);
public weak Gdk.Pixbuf apply_embedded_orientation ();
public void composite (Gdk.Pixbuf dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, Gdk.InterpType interp_type, int overall_alpha);
public void composite_color (Gdk.Pixbuf dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, Gdk.InterpType interp_type, int overall_alpha, int check_x, int check_y, int check_size, uint color1, uint color2);
public weak Gdk.Pixbuf composite_color_simple (int dest_width, int dest_height, Gdk.InterpType interp_type, int overall_alpha, int check_size, uint color1, uint color2);
......@@ -891,7 +893,7 @@ namespace Gdk {
[CCode (cheader_filename = "gdk/gdk.h")]
public class PixbufAnimation : GLib.Object {
public int get_height ();
public weak Gdk.PixbufAnimationIter get_iter (GLib.TimeVal start_time);
public weak Gdk.PixbufAnimationIter get_iter (out GLib.TimeVal start_time);
public weak Gdk.Pixbuf get_static_image ();
public static GLib.Type get_type ();
public int get_width ();
......@@ -900,7 +902,7 @@ namespace Gdk {
}
[CCode (cheader_filename = "gdk/gdk.h")]
public class PixbufAnimationIter : GLib.Object {
public bool advance (GLib.TimeVal current_time);
public bool advance (out GLib.TimeVal current_time);
public int get_delay_time ();
public weak Gdk.Pixbuf get_pixbuf ();
public static GLib.Type get_type ();
......@@ -1168,8 +1170,6 @@ namespace Gdk {
public Gdk.Color copy ();
[InstanceByReference]
public bool equal (out Gdk.Color colorb);
[InstanceByReference]
public void free ();
public static GLib.Type get_type ();
[InstanceByReference]
public uint hash ();
......@@ -1177,7 +1177,7 @@ namespace Gdk {
[InstanceByReference]
public weak string to_string ();
}
[ReferenceType (free_function = "gdk_cursor_unref")]
[ReferenceType (dup_function = "gdk_cursor_ref", free_function = "gdk_cursor_unref")]
[CCode (cheader_filename = "gdk/gdk.h")]
public struct Cursor {
public Gdk.CursorType type;
......@@ -1189,8 +1189,6 @@ namespace Gdk {
public Cursor.from_name (Gdk.Display display, string name);
public Cursor.from_pixbuf (Gdk.Display display, Gdk.Pixbuf pixbuf, int x, int y);
public Cursor.from_pixmap (Gdk.Pixmap source, Gdk.Pixmap mask, out Gdk.Color fg, out Gdk.Color bg, int x, int y);
public weak Gdk.Cursor @ref ();
public void unref ();
}
[ReferenceType]
[CCode (cheader_filename = "gdk/gdk.h")]
......@@ -1431,7 +1429,7 @@ namespace Gdk {
public Gdk.WindowState changed_mask;
public Gdk.WindowState new_window_state;
}
[ReferenceType]
[ReferenceType (dup_function = "gdk_font_ref", free_function = "gdk_font_unref")]
[CCode (cheader_filename = "gdk/gdk.h")]
public struct Font {
public Gdk.FontType type;
......@@ -1627,7 +1625,6 @@ namespace Gdk {
public struct RgbCmap {
public uint colors;
public int n_colors;
public void free ();
[NoArrayLength]
public RgbCmap (uint[] colors, int n_colors);
}
......@@ -1744,7 +1741,7 @@ namespace Gdk {
[CCode (cheader_filename = "gdk/gdk.h")]
public struct Char {
}
[ReferenceType]
[ReferenceType (free_function = "gdk_colors_free")]
[CCode (cheader_filename = "gdk/gdk.h")]
public struct Colors {
}
......@@ -1779,7 +1776,6 @@ namespace Gdk {
[CCode (cheader_filename = "gdk/gdk.h")]
public struct Event {
public weak Gdk.Event copy ();
public void free ();
public static weak Gdk.Event get ();
public bool get_axis (Gdk.AxisUse axis_use, double value);
public bool get_coords (double x_win, double y_win);
......
......@@ -183,7 +183,7 @@ namespace GLib {
public GLib.FileType get_file_type ();
public GLib.FileFlags get_flags ();
public weak string get_icon ();
public void get_modification_time (GLib.TimeVal result);
public void get_modification_time (out GLib.TimeVal result);
public weak string get_name ();
public int64 get_size ();
public weak string get_symlink_target ();
......@@ -204,7 +204,7 @@ namespace GLib {
public void set_file_type (GLib.FileType type);
public void set_flags (GLib.FileFlags flags);
public void set_icon (string icon);
public void set_modification_time (GLib.TimeVal mtime);
public void set_modification_time (out GLib.TimeVal mtime);
public void set_name (string name);
public void set_size (int64 size);
public void set_symlink_target (string symlink_target);
......@@ -227,10 +227,10 @@ namespace GLib {
[CCode (cheader_filename = "gio/gvfs.h")]
public class FileOutputStream : GLib.OutputStream {
public virtual weak GLib.FileInfo get_file_info (string attributes, GLib.Cancellable cancellable, GLib.Error error);
public void get_final_mtime (GLib.TimeVal mtime);
public void get_final_mtime (out GLib.TimeVal mtime);
public bool get_should_get_final_mtime ();
public static GLib.Type get_type ();
public void set_final_mtime (GLib.TimeVal final_mtime);
public void set_final_mtime (out GLib.TimeVal final_mtime);
public void set_should_get_final_mtime (bool get_final_mtime);
}
[CCode (cheader_filename = "gio/gvfs.h")]
......@@ -606,7 +606,6 @@ namespace GLib {
public struct FileAttributeMatcher {
public bool enumerate_namespace (string @namespace);
public weak string enumerate_next ();
public void free ();
public bool matches (string full_name);
public bool matches_only (string full_name);
public FileAttributeMatcher (string attributes);
......
......@@ -732,7 +732,8 @@ namespace GLib {
}
public static delegate void Callback ();
[ReferenceType]
public struct Closure {
}
......
......@@ -540,7 +540,6 @@ namespace Gst {
public Buffer.and_alloc (uint size);
public void set_caps (Gst.Caps caps);
public weak Gst.Buffer span (uint offset, Gst.Buffer buf2, uint len);
public void stamp (Gst.Buffer src);
public static weak Gst.Buffer try_new_and_alloc (uint size);
}
[CCode (cheader_filename = "gst/gst.h")]
......@@ -627,6 +626,7 @@ namespace Gst {
public static weak GLib.List class_get_pad_template_list (pointer element_class);
public static void class_install_std_props (pointer klass, ...);
public static void class_set_details (pointer klass, Gst.ElementDetails details);
public static void class_set_details_simple (pointer klass, string longname, string classification, string description, string author);
public Gst.StateChangeReturn continue_state (Gst.StateChangeReturn ret);
public void create_all_pads ();
public void found_tags (Gst.TagList list);
......@@ -703,6 +703,7 @@ namespace Gst {
public static GLib.Type get_type ();
public weak string get_uri_protocols ();
public int get_uri_type ();
public bool has_interface (string interfacename);
public static weak Gst.Element make (string factoryname, string name);
}
[CCode (cheader_filename = "gst/gst.h")]
......@@ -994,6 +995,10 @@ namespace Gst {
public signal void pad_created (Gst.Pad pad);
}
[CCode (cheader_filename = "gst/gst.h")]
public class ParamSpecFraction : GLib.ParamSpec, GLib.Object {
public static GLib.Type get_type ();
}
[CCode (cheader_filename = "gst/gst.h")]
public class Pipeline : Gst.Bin {
public weak Gst.Clock fixed_clock;
public uint64 stream_time;
......@@ -1143,6 +1148,8 @@ namespace Gst {
}
[CCode (cheader_filename = "gst/gst.h")]
public class XML : Gst.Object {
public weak GLib.List topelements;
public pointer ns;
[NoArrayLength]
public weak Gst.Element get_element (uchar[] name);
public weak GLib.List get_topelements ();
......@@ -1251,7 +1258,7 @@ namespace Gst {
[CCode (cheader_filename = "gst/gst.h")]
public struct BinaryTypeFindFactory {
}
[ReferenceType]
[ReferenceType (dup_function = "gst_caps_ref", free_function = "gst_caps_unref")]
[CCode (cheader_filename = "gst/gst.h")]
public struct Caps {
public GLib.Type type;
......@@ -1284,7 +1291,6 @@ namespace Gst {
public Caps.full_valist (Gst.Structure structure, pointer var_args);
public Caps.simple (string media_type, string fieldname);
public weak Gst.Caps normalize ();
public weak Gst.Caps @ref ();
public void remove_structure (uint idx);
public void replace (Gst.Caps newcaps);
public pointer save_thyself (pointer parent);
......@@ -1294,7 +1300,6 @@ namespace Gst {
public weak string to_string ();
public void truncate ();
public weak Gst.Caps union (Gst.Caps caps2);
public void unref ();
}
[ReferenceType]
[CCode (cheader_filename = "gst/gst.h")]
......@@ -1338,12 +1343,11 @@ namespace Gst {
public Gst.Format format;
public int64 value;
}
[ReferenceType]
[ReferenceType (free_function = "gst_index_entry_free")]
[CCode (cheader_filename = "gst/gst.h")]
public struct IndexEntry {
public bool assoc_map (Gst.Format format, int64 value);
public weak Gst.IndexEntry copy ();
public void free ();
public static GLib.Type get_type ();
}
[ReferenceType]
......@@ -1408,7 +1412,6 @@ namespace Gst {
public int64 duration;
public double applied_rate;
public bool clip (Gst.Format format, int64 start, int64 stop, int64 clip_start, int64 clip_stop);
public void free ();
public static GLib.Type get_type ();
public void init (Gst.Format format);
public Segment ();
......@@ -1450,7 +1453,6 @@ namespace Gst {
public bool fixate_field_nearest_fraction (string field_name, int target_numerator, int target_denominator);
public bool fixate_field_nearest_int (string field_name, int target);
public bool @foreach (Gst.StructureForeachFunc func, pointer user_data);
public void free ();
public static weak Gst.Structure from_string (string string, string end);
public bool get_boolean (string fieldname, bool value);
public bool get_clock_time (string fieldname, uint64 value);
......@@ -1501,7 +1503,6 @@ namespace Gst {
public weak Gst.TagList copy ();
public static bool copy_value (GLib.Value dest, Gst.TagList list, string tag);
public void @foreach (Gst.TagForeachFunc func, pointer user_data);
public void free ();
public bool get_boolean (string tag, bool value);
public bool get_boolean_index (string tag, uint index, bool value);
public bool get_char (string tag, string value);
......@@ -1611,6 +1612,12 @@ namespace Gst {
}
[ReferenceType]
[CCode (cheader_filename = "gst/gst.h")]
public struct Param {
public static weak GLib.ParamSpec spec_fraction (string name, string nick, string blurb, int min_num, int min_denom, int max_num, int max_denom, int default_num, int default_denom, GLib.ParamFlags flags);
public static weak GLib.ParamSpec spec_mini_object (string name, string nick, string blurb, GLib.Type object_type, GLib.ParamFlags flags);
}
[ReferenceType]
[CCode (cheader_filename = "gst/gst.h")]
public struct Print {
public static void element_args (GLib.String buf, int indent, Gst.Element element);
public static void pad_caps (GLib.String buf, int indent, Gst.Pad pad);
......@@ -1780,7 +1787,6 @@ namespace Gst {
public static GLib.Type int_range_get_type ();
public static bool is_tag_list (pointer p);
public static GLib.Quark library_error_quark ();
public static weak GLib.ParamSpec param_spec_mini_object (string name, string nick, string blurb, GLib.Type object_type, GLib.ParamFlags flags);
public static weak Gst.Element parse_bin_from_description (string bin_description, bool ghost_unconnected_pads, GLib.Error err);
public static GLib.Quark parse_error_quark ();
public static weak Gst.Element parse_launch (string pipeline_description, GLib.Error error);
......
This diff is collapsed.
[CCode (cprefix = "Gtk", lower_case_cprefix = "gtk_")]
namespace Gtk {
[CCode (cprefix = "GTK_SOURCE_SEARCH_", cheader_filename = "gtksourceview/gtksourceiter.h")]
[CCode (cprefix = "GTK_SOURCE_CONTEXT_", cheader_filename = "gtksourceview/gtksourceview.h")]
public enum SourceContextFlags {
EXTEND_PARENT,
END_PARENT,
END_AT_LINE_END,
FIRST_LINE_ONLY,
ONCE_ONLY,
STYLE_INSIDE,
}
[CCode (cprefix = "GTK_SOURCE_CONTEXT_", cheader_filename = "gtksourceview/gtksourceview.h")]
public enum SourceContextRefOptions {
IGNORE_STYLE,
OVERRIDE_STYLE,
REF_ORIGINAL,
}
[CCode (cprefix = "GTK_SOURCE_SEARCH_", cheader_filename = "gtksourceview/gtksourceview.h")]
public enum SourceSearchFlags {
VISIBLE_ONLY,
TEXT_ONLY,
......@@ -13,12 +28,13 @@ namespace Gtk {
AFTER,
ALWAYS,
}
[CCode (cheader_filename = "gtksourceview/gtksourcebuffer.h")]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceBuffer : Gtk.TextBuffer {
public void begin_not_undoable_action ();
public weak Gtk.SourceMarker create_marker (string name, string type, out Gtk.TextIter where);
public void delete_marker (Gtk.SourceMarker marker);
public void end_not_undoable_action ();
public void ensure_highlight (out Gtk.TextIter start, out Gtk.TextIter end);
public bool get_check_brackets ();
public weak Gtk.SourceMarker get_first_marker ();
public bool get_highlight ();
......@@ -52,17 +68,30 @@ namespace Gtk {
public weak bool can_redo { get; }
public weak Gtk.SourceStyleScheme style_scheme { get; set; }
}
[CCode (cheader_filename = "gtksourceview/gtksourcelanguage.h")]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceContextEngine : Gtk.SourceEngine {
}
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceEngine : GLib.Object {
}
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceLanguage : GLib.Object {
public weak string get_globs ();
public bool get_hidden ();
public weak string get_id ();
public weak string get_metadata (string name);
public weak string get_mime_types ();
public weak string get_name ();
public weak string get_section ();
public weak string get_style_ids ();
public weak string get_style_name (string style_id);
public static GLib.Type get_type ();
public weak string id { get; }
public weak string name { get; }
public weak string section { get; }
public weak bool hidden { get; }
}
[CCode (cheader_filename = "gtksourceview/gtksourcelanguagemanager.h")]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceLanguageManager : GLib.Object {
public static weak Gtk.SourceLanguageManager get_default ();
public weak Gtk.SourceLanguage get_language_by_id (string id);
......@@ -73,7 +102,7 @@ namespace Gtk {
public void set_search_path (string dirs);
public weak string[] search_path { get; set; }
}
[CCode (cheader_filename = "gtksourceview/gtksourcemarker.h")]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceMarker : GLib.Object {
public pointer get_buffer ();
public int get_line ();
......@@ -84,7 +113,7 @@ namespace Gtk {
public weak Gtk.SourceMarker prev ();
public void set_marker_type (string type);
}
[CCode (cheader_filename = "gtksourceview/gtksourcestyle.h")]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceStyle : GLib.Object {
public weak Gtk.SourceStyle copy ();
public static GLib.Type get_type ();
......@@ -113,31 +142,36 @@ namespace Gtk {
[NoAccessorMethod]
public weak bool strikethrough_set { get; construct; }
}
[CCode (cheader_filename = "gtksourceview/gtksourcestylemanager.h")]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceStyleManager : GLib.Object {
public bool add_scheme (string filename);
public void append_search_path (string path);
public void force_rescan ();
public static weak Gtk.SourceStyleManager get_default ();
public weak Gtk.SourceStyleScheme get_scheme (string scheme_id);
public weak string get_scheme_ids ();
public weak string get_search_path ();
public static GLib.Type get_type ();
public weak GLib.SList list_schemes ();
public SourceStyleManager ();
public void prepend_search_path (string path);
public void set_search_path (string path);
public weak string[] search_path { get; set; }
public signal void changed ();
public weak string[] scheme_ids { get; }
}
[CCode (cheader_filename = "gtksourceview/gtksourcestylescheme.h")]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceStyleScheme : GLib.Object {
public bool get_current_line_color (Gdk.Color color);
public bool get_current_line_color (out Gdk.Color color);
public weak string get_description ();
public weak string get_filename ();
public weak string get_id ();
public weak Gtk.SourceStyle get_matching_brackets_style ();
public weak string get_name ();
public weak Gtk.SourceStyle get_style (string style_name);
public weak Gtk.SourceStyle get_style (string style_id);
public static GLib.Type get_type ();
[NoAccessorMethod]
public weak string id { get; construct; }
[NoAccessorMethod]
public weak string name { get; set; }
public weak string filename { get; }
}
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public class SourceView : Gtk.TextView {
......@@ -179,4 +213,39 @@ namespace Gtk {
public signal void undo ();
public signal void redo ();
}
[ReferenceType]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public struct SourceContextData {
}
[ReferenceType]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public struct SourceContextReplace {
}
[ReferenceType]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public struct TextRegion {
public void add (out Gtk.TextIter _start, out Gtk.TextIter _end);
public void debug_print ();
public void destroy (bool delete_marks);
public weak Gtk.TextBuffer get_buffer ();
public void get_iterator (Gtk.TextRegionIterator iter, uint start);
public weak Gtk.TextRegion intersect (out Gtk.TextIter _start, out Gtk.TextIter _end);
public TextRegion (Gtk.TextBuffer buffer);
public bool nth_subregion (uint subregion, out Gtk.TextIter start, out Gtk.TextIter end);
public int subregions ();
public void subtract (out Gtk.TextIter _start, out Gtk.TextIter _end);
}
[ReferenceType]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public struct TextRegionIterator {
public void get_subregion (out Gtk.TextIter start, out Gtk.TextIter end);
public bool is_end ();
public bool next ();
}
[ReferenceType]
[CCode (cheader_filename = "gtksourceview/gtksourceview.h")]
public struct Source {
public static bool iter_backward_search (out Gtk.TextIter iter, string str, Gtk.SourceSearchFlags flags, out Gtk.TextIter match_start, out Gtk.TextIter match_end, out Gtk.TextIter limit);
public static bool iter_forward_search (out Gtk.TextIter iter, string str, Gtk.SourceSearchFlags flags, out Gtk.TextIter match_start, out Gtk.TextIter match_end, out Gtk.TextIter limit);
}
}
......@@ -445,11 +445,10 @@ namespace Soup {
public struct AuthBasicClass {
public pointer parent_class;
}
[ReferenceType]
[ReferenceType (free_function = "soup_dns_lookup_free")]
[CCode (cheader_filename = "libsoup/soup.h")]
public struct DNSLookup {
public void cancel ();
public void free ();
public weak string get_hostname ();
public static weak Soup.DNSLookup name (string name);
public bool resolve ();
......@@ -559,7 +558,6 @@ namespace Soup {
public static void decode (string part);
public static weak string encode (string part, string escape_extra);
public bool equal (Soup.Uri uri2);
public void free ();
public Uri (string uri_string);
public Uri.with_base (string uri_string);
public weak string to_string (bool just_path);
......
......@@ -2989,6 +2989,9 @@
<function name="get_toolkit_version" symbol="atk_get_toolkit_version">
<return-type type="const-gchar*"/>