Commit d6a8c049 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Mark non-GObject classes as compact, fix metadata patterns, fixes bug

2008-05-28  Juerg Billeter  <j@bitron.ch>

	* vapigen/valagidlparser.vala:

	Mark non-GObject classes as compact, fix metadata patterns,
	fixes bug 535206

	* vapi/cairo.vapi:

	Use [Compact] attribute

	* vapi/packages/gstreamer-audio-0.10/:
	* vapi/packages/gstreamer-check-0.10/:
	* vapi/packages/gstreamer-controller-0.10/:
	* vapi/packages/gstreamer-dataprotocol-0.10/:
	* vapi/packages/gstreamer-fft-0.10/:
	* vapi/packages/gstreamer-interfaces-0.10/:
	* vapi/packages/gstreamer-net-0.10/:
	* vapi/packages/gstreamer-netbuffer-0.10/:
	* vapi/packages/gstreamer-pbutils-0.10/:
	* vapi/packages/gstreamer-riff-0.10/:
	* vapi/packages/gstreamer-rtp-0.10/:
	* vapi/packages/gstreamer-rtsp-0.10/:
	* vapi/packages/gstreamer-sdp-0.10/:
	* vapi/packages/gstreamer-tag-0.10/:

	Add missing dependency on gmodule-2.0

	* vapi/atk.vapi:
	* vapi/gconf-2.0.vapi:
	* vapi/gdk-2.0.vapi:
	* vapi/gdk-pixbuf-2.0.vapi:
	* vapi/gio-2.0.vapi:
	* vapi/gio-unix-2.0.vapi:
	* vapi/gnet-2.0.vapi:
	* vapi/gnome-desktop-2.0.vapi:
	* vapi/gnome-keyring-1.vapi:
	* vapi/gnome-vfs-2.0.vapi:
	* vapi/goocanvas.vapi:
	* vapi/gstreamer-0.10.vapi:
	* vapi/gstreamer-audio-0.10.vapi:
	* vapi/gstreamer-base-0.10.vapi:
	* vapi/gstreamer-check-0.10.vapi:
	* vapi/gstreamer-controller-0.10.vapi:
	* vapi/gstreamer-dataprotocol-0.10.vapi:
	* vapi/gstreamer-fft-0.10.vapi:
	* vapi/gstreamer-interfaces-0.10.vapi:
	* vapi/gstreamer-net-0.10.vapi:
	* vapi/gstreamer-netbuffer-0.10.vapi:
	* vapi/gstreamer-pbutils-0.10.vapi:
	* vapi/gstreamer-riff-0.10.vapi:
	* vapi/gstreamer-rtp-0.10.vapi:
	* vapi/gstreamer-rtsp-0.10.vapi:
	* vapi/gstreamer-sdp-0.10.vapi:
	* vapi/gstreamer-video-0.10.vapi:
	* vapi/gtk+-2.0.vapi:
	* vapi/gtksourceview-2.0.vapi:
	* vapi/hildon-1.vapi:
	* vapi/hildon-fm-2.vapi:
	* vapi/json-glib-1.0.vapi:
	* vapi/libglade-2.0.vapi:
	* vapi/libgnome-2.0.vapi:
	* vapi/libgnome-menu.vapi:
	* vapi/libgnomeui-2.0.vapi:
	* vapi/libnotify.vapi:
	* vapi/liboobs-1.vapi:
	* vapi/libsoup-2.2.vapi:
	* vapi/libsoup-2.4.vapi:
	* vapi/libwnck-1.0.vapi:
	* vapi/pango.vapi:
	* vapi/pangocairo.vapi:
	* vapi/poppler-glib.vapi:
	* vapi/vte.vapi:
	* vapi/webkit-1.0.vapi:

	Regenerated

svn path=/trunk/; revision=1473
parent 228d1ac9
2008-05-28 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala:
Mark non-GObject classes as compact, fix metadata patterns,
fixes bug 535206
* vapi/cairo.vapi:
Use [Compact] attribute
* vapi/packages/gstreamer-audio-0.10/:
* vapi/packages/gstreamer-check-0.10/:
* vapi/packages/gstreamer-controller-0.10/:
* vapi/packages/gstreamer-dataprotocol-0.10/:
* vapi/packages/gstreamer-fft-0.10/:
* vapi/packages/gstreamer-interfaces-0.10/:
* vapi/packages/gstreamer-net-0.10/:
* vapi/packages/gstreamer-netbuffer-0.10/:
* vapi/packages/gstreamer-pbutils-0.10/:
* vapi/packages/gstreamer-riff-0.10/:
* vapi/packages/gstreamer-rtp-0.10/:
* vapi/packages/gstreamer-rtsp-0.10/:
* vapi/packages/gstreamer-sdp-0.10/:
* vapi/packages/gstreamer-tag-0.10/:
Add missing dependency on gmodule-2.0
* vapi/atk.vapi:
* vapi/gconf-2.0.vapi:
* vapi/gdk-2.0.vapi:
* vapi/gdk-pixbuf-2.0.vapi:
* vapi/gio-2.0.vapi:
* vapi/gio-unix-2.0.vapi:
* vapi/gnet-2.0.vapi:
* vapi/gnome-desktop-2.0.vapi:
* vapi/gnome-keyring-1.vapi:
* vapi/gnome-vfs-2.0.vapi:
* vapi/goocanvas.vapi:
* vapi/gstreamer-0.10.vapi:
* vapi/gstreamer-audio-0.10.vapi:
* vapi/gstreamer-base-0.10.vapi:
* vapi/gstreamer-check-0.10.vapi:
* vapi/gstreamer-controller-0.10.vapi:
* vapi/gstreamer-dataprotocol-0.10.vapi:
* vapi/gstreamer-fft-0.10.vapi:
* vapi/gstreamer-interfaces-0.10.vapi:
* vapi/gstreamer-net-0.10.vapi:
* vapi/gstreamer-netbuffer-0.10.vapi:
* vapi/gstreamer-pbutils-0.10.vapi:
* vapi/gstreamer-riff-0.10.vapi:
* vapi/gstreamer-rtp-0.10.vapi:
* vapi/gstreamer-rtsp-0.10.vapi:
* vapi/gstreamer-sdp-0.10.vapi:
* vapi/gstreamer-video-0.10.vapi:
* vapi/gtk+-2.0.vapi:
* vapi/gtksourceview-2.0.vapi:
* vapi/hildon-1.vapi:
* vapi/hildon-fm-2.vapi:
* vapi/json-glib-1.0.vapi:
* vapi/libglade-2.0.vapi:
* vapi/libgnome-2.0.vapi:
* vapi/libgnome-menu.vapi:
* vapi/libgnomeui-2.0.vapi:
* vapi/libnotify.vapi:
* vapi/liboobs-1.vapi:
* vapi/libsoup-2.2.vapi:
* vapi/libsoup-2.4.vapi:
* vapi/libwnck-1.0.vapi:
* vapi/pango.vapi:
* vapi/pangocairo.vapi:
* vapi/poppler-glib.vapi:
* vapi/vte.vapi:
* vapi/webkit-1.0.vapi:
Regenerated
2008-05-28 Jürg Billeter <j@bitron.ch>
* vapi/libxml-2.0.vapi:
......
......@@ -233,14 +233,17 @@ namespace Atk {
public enum HyperlinkStateFlags {
INLINE
}
[Compact]
[CCode (cheader_filename = "atk/atk.h")]
public class Attribute {
public weak string name;
public weak string value;
}
[Compact]
[CCode (cheader_filename = "atk/atk.h")]
public class AttributeSet {
}
[Compact]
[CCode (cheader_filename = "atk/atk.h")]
public class KeyEventStruct {
public int type;
......@@ -252,18 +255,21 @@ namespace Atk {
public ushort keycode;
public uint timestamp;
}
[Compact]
[CCode (cheader_filename = "atk/atk.h")]
public class PropertyValues {
public weak string property_name;
public GLib.Value old_value;
public GLib.Value new_value;
}
[Compact]
[CCode (cheader_filename = "atk/atk.h")]
public class State {
public static Atk.StateType type_for_name (string name);
public static weak string type_get_name (Atk.StateType type);
public static Atk.StateType type_register (string name);
}
[Compact]
[CCode (cheader_filename = "atk/atk.h")]
public class TextRange {
public weak Atk.TextRectangle bounds;
......@@ -271,6 +277,7 @@ namespace Atk {
public int end_offset;
public weak string content;
}
[Compact]
[CCode (cheader_filename = "atk/atk.h")]
public class TextRectangle {
public int x;
......@@ -295,12 +302,12 @@ namespace Atk {
public virtual bool is_valid ();
[NoWrapper]
public virtual uint link_state ();
public weak int end_index { get; }
public int end_index { get; }
[NoAccessorMethod]
public weak int number_of_anchors { get; }
public int number_of_anchors { get; }
[NoAccessorMethod]
public weak bool selected_link { get; }
public weak int start_index { get; }
public bool selected_link { get; }
public int start_index { get; }
public signal void link_activated ();
}
[CCode (cheader_filename = "atk/atk.h")]
......@@ -351,35 +358,35 @@ namespace Atk {
public virtual void set_parent (Atk.Object parent);
public virtual void set_role (Atk.Role role);
[NoAccessorMethod]
public weak int accessible_component_layer { get; }
public int accessible_component_layer { get; }
[NoAccessorMethod]
public weak int accessible_component_mdi_zorder { get; }
public int accessible_component_mdi_zorder { get; }
[NoAccessorMethod]
public weak string accessible_description { get; set; }
public string accessible_description { get; set; }
[NoAccessorMethod]
public weak int accessible_hypertext_nlinks { get; }
public int accessible_hypertext_nlinks { get; }
[NoAccessorMethod]
public weak string accessible_name { get; set; }
public string accessible_name { get; set; }
[NoAccessorMethod]
public weak Atk.Object accessible_parent { get; set; }
public Atk.Object accessible_parent { get; set; }
[NoAccessorMethod]
public weak int accessible_role { get; set; }
public int accessible_role { get; set; }
[NoAccessorMethod]
public weak string accessible_table_caption { get; set; }
public string accessible_table_caption { get; set; }
[NoAccessorMethod]
public weak Atk.Object accessible_table_caption_object { get; set; }
public Atk.Object accessible_table_caption_object { get; set; }
[NoAccessorMethod]
public weak string accessible_table_column_description { get; set; }
public string accessible_table_column_description { get; set; }
[NoAccessorMethod]
public weak Atk.Object accessible_table_column_header { get; set; }
public Atk.Object accessible_table_column_header { get; set; }
[NoAccessorMethod]
public weak string accessible_table_row_description { get; set; }
public string accessible_table_row_description { get; set; }
[NoAccessorMethod]
public weak Atk.Object accessible_table_row_header { get; set; }
public Atk.Object accessible_table_row_header { get; set; }
[NoAccessorMethod]
public weak Atk.Object accessible_table_summary { get; set; }
public Atk.Object accessible_table_summary { get; set; }
[NoAccessorMethod]
public weak double accessible_value { get; set; }
public double accessible_value { get; set; }
public signal void active_descendant_changed (void* child);
public signal void children_changed (uint change_index, void* changed_child);
public signal void focus_event (bool focus_in);
......@@ -412,9 +419,9 @@ namespace Atk {
public static weak string type_get_name (Atk.RelationType type);
public static Atk.RelationType type_register (string name);
[NoAccessorMethod]
public weak Atk.RelationType relation_type { get; set; }
public Atk.RelationType relation_type { get; set; }
[NoAccessorMethod]
public weak GLib.ValueArray target { get; set; }
public GLib.ValueArray target { get; set; }
}
[CCode (cheader_filename = "atk/atk.h")]
public class RelationSet : GLib.Object {
......
......@@ -22,6 +22,7 @@
[CCode (cheader_filename = "cairo.h")]
namespace Cairo {
[Compact]
[CCode (ref_function = "cairo_reference", unref_function = "cairo_destroy", cname = "cairo_t", cprefix = "cairo_", cheader_filename = "cairo.h")]
public class Context {
[CCode (cname = "cairo_create")]
......@@ -192,6 +193,7 @@ namespace Cairo {
SATURATE
}
[Compact]
[CCode (free_function = "cairo_path_destroy", cname = "cairo_path_t")]
public class Path {
public Status status;
......@@ -224,6 +226,7 @@ namespace Cairo {
CLOSE_PATH
}
[Compact]
[CCode (ref_function = "cairo_pattern_reference", unref_function = "cairo_pattern_destroy", cname = "cairo_pattern_t")]
public class Pattern {
public void add_color_stop_rgb (double offset, double red, double green, double blue);
......@@ -297,6 +300,7 @@ namespace Cairo {
BOLD
}
[Compact]
[CCode (ref_function = "cairo_font_face_reference", unref_function = "cairo_font_face_destroy", cname = "cairo_font_face_t")]
public class FontFace {
public Status status ();
......@@ -311,6 +315,7 @@ namespace Cairo {
ATSUI
}
[Compact]
[CCode (ref_function = "cairo_scaled_font_reference", unref_function = "cairo_scaled_font_destroy", cname = "cairo_scaled_font_t")]
public class ScaledFont {
[CCode (cname = "cairo_scaled_font_create")]
......@@ -345,6 +350,7 @@ namespace Cairo {
public double y_advance;
}
[Compact]
[CCode (copy_function = "cairo_font_options_copy", free_function = "cairo_font_options_destroy", cname = "cairo_font_options_t")]
public class FontOptions {
[CCode (cname = "cairo_font_options_create")]
......@@ -388,6 +394,7 @@ namespace Cairo {
ON
}
[Compact]
[CCode (ref_function = "cairo_surface_reference", unref_function = "cairo_surface_destroy", cname = "cairo_surface_t", cheader_filename = "cairo.h")]
public class Surface {
[CCode (cname = "cairo_surface_create_similar")]
......@@ -436,6 +443,7 @@ namespace Cairo {
RGB16_565
}
[Compact]
[CCode (cname = "cairo_surface_t")]
public class ImageSurface : Surface {
[CCode (cname = "cairo_image_surface_create")]
......@@ -455,6 +463,7 @@ namespace Cairo {
public ImageSurface.from_png_stream (ReadFunc read_func, void* closure);
}
[Compact]
[CCode (cname = "cairo_surface_t", cheader_filename = "cairo-pdf.h")]
public class PdfSurface : Surface {
[CCode (cname = "cairo_pdf_surface_create")]
......@@ -467,6 +476,7 @@ namespace Cairo {
public static delegate Status ReadFunc (void* closure, uchar[] data);
public static delegate Status WriteFunc (void* closure, uchar[] data);
[Compact]
[CCode (cname = "cairo_surface_t", cheader_filename = "cairo-ps.h")]
public class PsSurface : Surface {
[CCode (cname = "cairo_ps_surface_create")]
......@@ -479,6 +489,7 @@ namespace Cairo {
public void dsc_comment (string comment);
}
[Compact]
[CCode (cname = "cairo_surface_t", cheader_filename = "cairo-svg.h")]
public class SvgSurface : Surface {
[CCode (cname = "cairo_svg_surface_create")]
......@@ -495,6 +506,7 @@ namespace Cairo {
VERSION_1_2
}
[Compact]
[CCode (cname = "cairo_surface_t", cheader_filename = "cairo-xlib.h")]
public class XlibSurface : Surface {
[CCode (cname = "cairo_xlib_surface_create")]
......
......@@ -50,6 +50,7 @@ namespace GConf {
public enum UnsetFlags {
NAMES
}
[Compact]
[CCode (ref_function = "gconf_engine_ref", unref_function = "gconf_engine_unref", cheader_filename = "gconf/gconf.h")]
public class Engine {
public weak GLib.SList all_dirs (string dir) throws GLib.Error;
......@@ -92,6 +93,7 @@ namespace GConf {
public void suggest_sync () throws GLib.Error;
public bool unset (string key) throws GLib.Error;
}
[Compact]
[CCode (ref_function = "gconf_entry_ref", unref_function = "gconf_entry_unref", cheader_filename = "gconf/gconf.h")]
public class Entry {
public weak string key;
......@@ -112,11 +114,13 @@ namespace GConf {
public void set_value_nocopy (GConf.Value val);
public weak GConf.Value steal_value ();
}
[Compact]
[CCode (cheader_filename = "gconf/gconf.h")]
public class EnumStringPair {
public int enum_value;
public weak string str;
}
[Compact]
[CCode (cheader_filename = "gconf/gconf.h")]
public class Listeners {
public uint add (string listen_point, void* listener_data, GLib.FreeFunc destroy_notify);
......@@ -128,6 +132,7 @@ namespace GConf {
public void remove (uint cnxn_id);
public void remove_if (GConf.ListenersPredicate predicate);
}
[Compact]
[CCode (cheader_filename = "gconf/gconf.h")]
public class MetaInfo {
public weak string schema;
......@@ -142,6 +147,7 @@ namespace GConf {
public void set_mod_user (string mod_user);
public void set_schema (string schema_name);
}
[Compact]
[CCode (copy_function = "gconf_schema_copy", cheader_filename = "gconf/gconf.h")]
public class Schema {
public weak GConf.Schema copy ();
......@@ -165,6 +171,7 @@ namespace GConf {
public void set_short_desc (string desc);
public void set_type (GConf.ValueType type);
}
[Compact]
[CCode (copy_function = "gconf_value_copy", cheader_filename = "gconf/gconf.h")]
public class Value {
public GConf.ValueType type;
......@@ -196,6 +203,7 @@ namespace GConf {
public void set_string (string the_str);
public weak string to_string ();
}
[Compact]
[CCode (ref_function = "gconf_change_set_ref", unref_function = "gconf_change_set_unref", cheader_filename = "gconf/gconf.h")]
public class ChangeSet : GLib.Boxed {
public bool check_value (string key, out weak GConf.Value value_retloc);
......
......@@ -529,34 +529,41 @@ namespace Gdk {
ABOVE,
BELOW
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class Bitmap {
public weak GLib.Object parent_instance;
public static weak Gdk.Bitmap create_from_data (Gdk.Drawable drawable, string data, int width, int height);
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class DeviceAxis {
public Gdk.AxisUse use;
public double min;
public double max;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class DeviceClass {
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class DeviceKey {
public uint keyval;
public Gdk.ModifierType modifiers;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class DisplayPointerHooks {
public GLib.Callback get_pointer;
public GLib.Callback window_get_pointer;
public GLib.Callback window_at_pointer;
public weak GLib.Callback get_pointer;
public weak GLib.Callback window_get_pointer;
public weak GLib.Callback window_at_pointer;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class Font {
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class GCValues {
public Gdk.Color foreground;
......@@ -578,6 +585,7 @@ namespace Gdk {
public Gdk.CapStyle cap_style;
public Gdk.JoinStyle join_style;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class Geometry {
public int min_width;
......@@ -592,43 +600,51 @@ namespace Gdk {
public double max_aspect;
public Gdk.Gravity win_gravity;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class KeymapKey {
public uint keycode;
public int group;
public int level;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class NativeWindow {
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class PangoAttrEmbossColor {
public weak Pango.Attribute attr;
public Pango.Color color;
public PangoAttrEmbossColor (Gdk.Color color);
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class PangoAttrEmbossed {
public weak Pango.Attribute attr;
public bool embossed;
public PangoAttrEmbossed (bool embossed);
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class PangoAttrStipple {
public weak Pango.Attribute attr;
public weak Gdk.Bitmap stipple;
public PangoAttrStipple (Gdk.Bitmap stipple);
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class Point {
public int x;
public int y;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class PointerHooks {
public GLib.Callback get_pointer;
public GLib.Callback window_at_pointer;
public weak GLib.Callback get_pointer;
public weak GLib.Callback window_at_pointer;
}
[Compact]
[CCode (copy_function = "gdk_region_copy", free_function = "gdk_region_destroy", cheader_filename = "gdk/gdk.h")]
public class Region {
public weak Gdk.Region copy ();
......@@ -650,14 +666,16 @@ namespace Gdk {
public void union_with_rect (Gdk.Rectangle rect);
public void xor (Gdk.Region source2);
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class RgbCmap {
[NoArrayLength]
public uint[] colors;
public weak uint[] colors;
public int n_colors;
public weak GLib.SList info_list;
public RgbCmap (uint[] colors);
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class Segment {
public int x1;
......@@ -665,18 +683,21 @@ namespace Gdk {
public int x2;
public int y2;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class Span {
public int x;
public int y;
public int width;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class TimeCoord {
public uint time;
[NoArrayLength]
public double[] axes;
public weak double[] axes;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class Trapezoid {
public double y1;
......@@ -686,15 +707,19 @@ namespace Gdk {
public double x12;
public double x22;
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class VisualClass {
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class WChar {
}
[Compact]
[CCode (cheader_filename = "gdk/gdk.h")]
public class XEvent {
}
[Compact]
[CCode (ref_function = "gdk_cursor_ref", unref_function = "gdk_cursor_unref", cheader_filename = "gdk/gdk.h")]
public class Cursor : GLib.Boxed {
public Gdk.CursorType type;
......@@ -747,19 +772,19 @@ namespace Gdk {
public weak GLib.List queued_events;
public weak GLib.List queued_tail;
[NoArrayLength]
public uint[] button_click_time;
public weak uint[] button_click_time;
[NoArrayLength]
public Gdk.Window[] button_window;
public weak Gdk.Window[] button_window;
[NoArrayLength]
public int[] button_number;
public weak int[] button_number;
public uint double_click_time;
public weak Gdk.Device core_pointer;
public weak Gdk.DisplayPointerHooks pointer_hooks;
public uint double_click_distance;
[NoArrayLength]
public int[] button_x;
public weak int[] button_x;
[NoArrayLength]
public int[] button_y;
public weak int[] button_y;
public void add_client_message_filter (Gdk.Atom message_type, Gdk.FilterFunc func, void* data);
public void beep ();
public void close ();
......@@ -808,7 +833,7 @@ namespace Gdk {
public weak Gdk.Display get_default_display ();
public weak GLib.SList list_displays ();
public void set_default_display (Gdk.Display display);
public weak Gdk.Display default_display { get; set; }
public Gdk.Display default_display { get; set; }
public signal void display_opened (Gdk.Display display);
}
[CCode (cheader_filename = "gdk/gdk.h")]
......@@ -950,7 +975,7 @@ namespace Gdk {
public void set_override_color (Pango.RenderPart part, Gdk.Color color);
public void set_stipple (Pango.RenderPart part, Gdk.Bitmap stipple);
[NoAccessorMethod]
public weak Gdk.Screen screen { get; construct; }
public Gdk.Screen screen { get; construct; }
}
[CCode (cheader_filename = "gdk/gdk.h")]
public class Pixmap : Gdk.Drawable {
......@@ -970,9 +995,9 @@ namespace Gdk {
public class Screen : GLib.Object {
public uint closed;
[NoArrayLength]
public Gdk.GC[] normal_gcs;
public weak Gdk.GC[] normal_gcs;
[NoArrayLength]
public Gdk.GC[] exposure_gcs;
public weak Gdk.GC[] exposure_gcs;
public void broadcast_client_message (Gdk.Event event);
public weak Gdk.Window get_active_window ();
public static weak Gdk.Screen get_default ();
......@@ -1009,8 +1034,8 @@ namespace Gdk {
public void set_resolution (double dpi);
public static int width ();
public static int width_mm ();
public weak void* font_options { get; set; }
public weak double resolution { get; set; }
public void* font_options { get; set; }
public double resolution { get; set; }
public signal void composited_changed ();
public signal void size_changed ();
}
......@@ -1583,9 +1608,9 @@ namespace Gdk {
[CCode (cheader_filename = "gdk/gdk.h")]
public static bool get_show_events ();
[CCode (cheader_filename = "gdk/gdk.h")]
public static void init ([CCode (array_length_pos = 0.9)] ref string[] argv);
public static void init ([CCode (array_length_pos = 0.9)] ref weak string[] argv);
[CCode (cheader_filename = "gdk/gdk.h")]
public static bool init_check ([CCode (array_length_pos = 0.9)] ref string[] argv);
public static bool init_check ([CCode (array_length_pos = 0.9)] ref weak string[] argv);
[CCode (cheader_filename = "gdk/gdk.h")]
public static void input_set_extension_events (Gdk.Window window, int mask, Gdk.ExtensionMode mode);
[CCode (cheader_filename = "gdk/gdk.h")]
......
......@@ -56,6 +56,7 @@ namespace Gdk {
ENCODING_RLE,
ENCODING_MASK
}
[Compact]
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
public class PixbufFormat {
public weak string get_description ();
......@@ -68,6 +69,7 @@ namespace Gdk {
public bool is_writable ();
public void set_disabled (bool disabled);
}
[Compact]
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
public class PixbufSimpleAnimClass {
}
......@@ -114,21 +116,21 @@ namespace Gdk {
public void scale (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);
public weak Gdk.Pixbuf scale_simple (int dest_width, int dest_height, Gdk.InterpType interp_type);
[NoAccessorMethod]
public weak int bits_per_sample { get; construct; }
public int bits_per_sample { get; construct; }
[NoAccessorMethod]
public weak Gdk.Colorspace colorspace { get; construct; }
public Gdk.Colorspace colorspace { get; construct; }
[NoAccessorMethod]
public weak bool has_alpha { get; construct; }
public bool has_alpha { get; construct; }
[NoAccessorMethod]
public weak int height { get; construct; }
public int height { get; construct; }
[NoAccessorMethod]
public weak int n_channels { get; construct; }
public int n_channels { get; construct; }
[NoAccessorMethod]
public weak void* pixels { get; construct; }
public void* pixels { get; construct; }
[NoAccessorMethod]
public weak int rowstride { get; construct; }
public int rowstride { get; construct; }
[NoAccessorMethod]
public weak int width { get; construct; }
public int width { get; construct; }
}
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
public class PixbufAnimation : GLib.Object {
......@@ -179,7 +181,7 @@ namespace Gdk {
public uint width;
public uint height;
[NoArrayLength]
public uchar[] pixel_data;
public weak uchar[] pixel_data;
public bool deserialize ([CCode (array_length_pos = 0.9)] uchar[] stream) throws GLib.Error;
public void* from_pixbuf (Gdk.Pixbuf pixbuf, bool use_rle);
public weak uchar[] serialize ();
......
......@@ -173,12 +173,14 @@ namespace GLib {
WOULD_MERGE,
FAILED_HANDLED,
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class FileAttributeInfo {
public weak string name;
public GLib.FileAttributeType type;
public GLib.FileAttributeInfoFlags flags;
}
[Compact]
[CCode (ref_function = "g_file_attribute_info_list_ref", unref_function = "g_file_attribute_info_list_unref", cheader_filename = "gio/gio.h")]
public class FileAttributeInfoList {
public weak GLib.FileAttributeInfo infos;
......@@ -188,6 +190,7 @@ namespace GLib {
public weak GLib.FileAttributeInfo lookup (string name);
public FileAttributeInfoList ();
}
[Compact]
[CCode (ref_function = "g_file_attribute_matcher_ref", unref_function = "g_file_attribute_matcher_unref", cheader_filename = "gio/gio.h")]
public class FileAttributeMatcher {
public bool enumerate_namespace (string ns);
......@@ -196,18 +199,22 @@ namespace GLib {
public bool matches_only (string attribute);
public FileAttributeMatcher (string attributes);
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class FileIconClass {
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class FileInfoClass {
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOExtension {
public weak string get_name ();
public int get_priority ();
public weak GLib.TypeClass ref_class ();
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOExtensionPoint {
public weak GLib.IOExtension get_extension_by_name (string name);
......@@ -218,17 +225,21 @@ namespace GLib {
public static weak GLib.IOExtensionPoint register (string name);
public void set_required_type (GLib.Type type);
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOModuleClass {
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class IOSchedulerJob {
public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify notify);
public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify notify);
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class SimpleAsyncResultClass {
}
[Compact]
[CCode (cheader_filename = "gio/gio.h")]
public class ThemedIconClass {
}
......@@ -252,7 +263,7 @@ namespace GLib {
public virtual long fill (long count, GLib.Cancellable? cancellable) throws GLib.Error;
public virtual void fill_async (long count, int io_priority, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
public virtual long fill_finish (GLib.AsyncResult _result) throws GLib.Error;
public weak uint buffer_size { get; set construct; }
public uint buffer_size { get; set construct; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class BufferedOutputStream : GLib.FilterOutputStream {
......@@ -262,8 +273,8 @@ namespace GLib {
public BufferedOutputStream.sized (GLib.OutputStream base_stream, ulong size);
public void set_auto_grow (bool auto_grow);
public void set_buffer_size (ulong size);
public weak bool auto_grow { get; set; }
public weak uint buffer_size { get; set construct; }
public bool auto_grow { get; set; }
public uint buffer_size { get; set construct; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class Cancellable : GLib.Object {
......@@ -294,8 +305,8 @@ namespace GLib {
public weak string read_until (string stop_chars, out ulong length, GLib.Cancellable? cancellable) throws GLib.Error;
public void set_byte_order (GLib.DataStreamByteOrder order);
public void set_newline_type (GLib.DataStreamNewlineType type);
public weak GLib.DataStreamByteOrder byte_order { get; set; }
public weak GLib.DataStreamNewlineType newline_type { get; set; }
public GLib.DataStreamByteOrder byte_order { get; set; }
public GLib.DataStreamNewlineType newline_type { get; set; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class DataOutputStream : GLib.FilterOutputStream {
......@@ -310,7 +321,7 @@ namespace GLib {
public bool put_uint32 (uint data, GLib.Cancellable? cancellable) throws GLib.Error;
public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable) throws GLib.Error;
public void set_byte_order (GLib.DataStreamByteOrder order);
public weak GLib.DataStreamByteOrder byte_order { get; set; }
public GLib.DataStreamByteOrder byte_order { get; set; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class FileEnumerator : GLib.Object {
......@@ -411,9 +422,9 @@ namespace GLib {
public void set_rate_limit (int limit_msecs);
public virtual bool cancel ();
[NoAccessorMethod]
public weak bool cancelled { get; }
public bool cancelled { get; }
[NoAccessorMethod]
public weak int rate_limit { get; set; }
public int rate_limit { get; set; }
public signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
}
[CCode (cheader_filename = "gio/gio.h")]
......@@ -445,13 +456,13 @@ namespace GLib {
public class FilterInputStream : GLib.InputStream {
public weak GLib.InputStream get_base_stream ();
[NoAccessorMethod]
public weak GLib.InputStream base_stream { get; construct; }
public GLib.InputStream base_stream { get; construct; }
}
[CCode (cheader_filename = "gio/gio.h")]
public class FilterOutputStream : GLib.OutputStream {
public weak GLib.OutputStream get_base_stream ();
[NoAccessorMethod]
public weak GLib.OutputStream base_stream { get; construct; }