]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
atk, gdk-3.0, gdk-pixbuf-2.0, gtksourceview-3.0, mx-1.0: update
authorEvan Nemerson <evan@coeus-group.com>
Thu, 12 Jan 2012 07:24:34 +0000 (23:24 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Thu, 12 Jan 2012 07:24:34 +0000 (23:24 -0800)
vapi/atk.vapi
vapi/gdk-3.0.vapi
vapi/gdk-pixbuf-2.0.vapi
vapi/gtksourceview-3.0.vapi
vapi/metadata/GdkPixbuf-2.0.metadata
vapi/metadata/GtkSource-3.0.metadata
vapi/metadata/Mx-1.0.metadata
vapi/mx-1.0.vapi

index 4509c494c122955d958d7f38e436128486335fb0..404480086cdbb2a432d2d53b690c509850b9bbf8 100644 (file)
@@ -766,7 +766,7 @@ namespace Atk {
        [CCode (cheader_filename = "atk/atk.h", has_target = false)]
        public delegate void EventListenerInit ();
        [CCode (cheader_filename = "atk/atk.h", has_target = false)]
-       public delegate void FocusHandler (Atk.Object obj, bool focus_in);
+       public delegate void FocusHandler (Atk.Object arg0, bool arg1);
        [CCode (cheader_filename = "atk/atk.h")]
        public delegate bool Function ();
        [CCode (cheader_filename = "atk/atk.h")]
index baffe138bedac69c9bd647d93d9252f524c82c6d..eb99918d7860b810f60aba6d370ff71d0649231c 100644 (file)
@@ -4944,6 +4944,7 @@ namespace Gdk {
                public void restack (Gdk.Window? sibling, bool above);
                public void scroll (int dx, int dy);
                public void set_accept_focus (bool accept_focus);
+               [Deprecated (since = "3.4")]
                public void set_background (Gdk.Color color);
                public void set_background_pattern (Cairo.Pattern? pattern);
                public void set_background_rgba (Gdk.RGBA rgba);
@@ -5760,6 +5761,7 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static Cairo.Region cairo_region_create_from_surface (Cairo.Surface surface);
        [CCode (cheader_filename = "gdk/gdk.h")]
+       [Deprecated (since = "3.4")]
        public static void cairo_set_source_color (Cairo.Context cr, Gdk.Color color);
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static void cairo_set_source_pixbuf (Cairo.Context cr, Gdk.Pixbuf pixbuf, double pixbuf_x, double pixbuf_y);
index ca81e1a50ad37af41de568eeffd76a06b7e9b528..7cfe790c20e62bec1381524df3560315e44b10ce 100644 (file)
@@ -34,6 +34,7 @@ namespace Gdk {
                [CCode (has_construct_function = false)]
                public Pixbuf.from_xpm_data ([CCode (array_length = false, type = "char**")] string[] data);
                public int get_bits_per_sample ();
+               public size_t get_byte_length ();
                public Gdk.Colorspace get_colorspace ();
                public static unowned Gdk.PixbufFormat get_file_info (string filename, out int width, out int height);
                public static GLib.SList<weak Gdk.PixbufFormat> get_formats ();
@@ -43,6 +44,8 @@ namespace Gdk {
                public unowned string get_option (string key);
                [CCode (array_length = false)]
                public unowned uint8[] get_pixels ();
+               [CCode (array_length_pos = 0.1, array_length_type = "guint")]
+               public unowned uint8[] get_pixels_with_length ();
                public int get_rowstride ();
                public int get_width ();
                [CCode (cname = "gdk_pixbuf_new_from_stream_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
index 0eb41e1d69ad4f02b92238f1fc0ccc4a9dfa4dda..509c3037a6ebf5d129651add15032cf29ac2cba2 100644 (file)
@@ -3,9 +3,9 @@
 [CCode (cprefix = "Gtk", gir_namespace = "GtkSource", gir_version = "3.0", lower_case_cprefix = "gtk_")]
 namespace Gtk {
        namespace SourceCompletionCapability {
-               [CCode (cheader_filename = "gtksourceview/gtksource.h")]
+               [CCode (cheader_filename = "gtksourceview/gtksource.h", cname = "GTK_SOURCE_COMPLETION_CAPABILITY_AUTOMATIC")]
                public const string AUTOMATIC;
-               [CCode (cheader_filename = "gtksourceview/gtksource.h")]
+               [CCode (cheader_filename = "gtksourceview/gtksource.h", cname = "GTK_SOURCE_COMPLETION_CAPABILITY_INTERACTIVE")]
                public const string INTERACTIVE;
        }
        [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_buffer_get_type ()")]
@@ -74,6 +74,8 @@ namespace Gtk {
                [NoWrapper]
                public virtual bool proposal_activated (Gtk.SourceCompletionProvider provider, Gtk.SourceCompletionProposal proposal);
                public bool remove_provider (Gtk.SourceCompletionProvider provider) throws GLib.Error;
+               [CCode (cname = "gtk_source_completion_show")]
+               public bool start (GLib.List<Gtk.SourceCompletionProvider>? providers, owned Gtk.SourceCompletionContext context);
                public void unblock_interactive ();
                [NoAccessorMethod]
                public uint accelerators { get; set construct; }
@@ -98,7 +100,6 @@ namespace Gtk {
                public virtual signal void move_cursor (Gtk.ScrollStep step, int num);
                public virtual signal void move_page (Gtk.ScrollStep step, int num);
                public virtual signal void populate_context (Gtk.SourceCompletionContext context);
-               [HasEmitter]
                public virtual signal void show ();
        }
        [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_completion_context_get_type ()")]
@@ -175,6 +176,7 @@ namespace Gtk {
                [CCode (has_construct_function = false)]
                protected SourceGutter ();
                public void get_padding (int xpad, int ypad);
+               public unowned Gtk.SourceGutterRenderer get_renderer_at_pos (int x, int y);
                public unowned Gdk.Window get_window ();
                public bool insert (Gtk.SourceGutterRenderer renderer, int position);
                public void queue_draw ();
@@ -195,7 +197,6 @@ namespace Gtk {
        public abstract class SourceGutterRenderer : GLib.InitiallyUnowned {
                [CCode (has_construct_function = false)]
                protected SourceGutterRenderer ();
-               public virtual void activate (Gtk.TextIter iter, Gdk.Rectangle area, Gdk.Event event);
                public virtual void begin (Cairo.Context cr, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.TextIter start, Gtk.TextIter end);
                [NoWrapper]
                public virtual void change_buffer (Gtk.TextBuffer old_buffer);
@@ -211,8 +212,6 @@ namespace Gtk {
                public unowned Gtk.TextView get_view ();
                public bool get_visible ();
                public Gtk.TextWindowType get_window_type ();
-               public virtual bool query_activatable (Gtk.TextIter iter, Gdk.Rectangle area, Gdk.Event event);
-               public virtual bool query_tooltip (Gtk.TextIter iter, Gdk.Rectangle area, int x, int y, Gtk.Tooltip tooltip);
                public void set_alignment (float xalign, float yalign);
                public void set_alignment_mode (Gtk.SourceGutterRendererAlignmentMode mode);
                public void set_background (Gdk.RGBA? color);
@@ -237,8 +236,14 @@ namespace Gtk {
                [NoAccessorMethod]
                public int ypad { get; set construct; }
                [HasEmitter]
+               public virtual signal void activate (Gtk.TextIter iter, Cairo.RectangleInt area, Gdk.Event event);
+               [HasEmitter]
+               public virtual signal bool query_activatable (Gtk.TextIter iter, Cairo.RectangleInt area, Gdk.Event event);
+               [HasEmitter]
                public virtual signal void query_data (Gtk.TextIter start, Gtk.TextIter end, Gtk.SourceGutterRendererState state);
                [HasEmitter]
+               public virtual signal bool query_tooltip (Gtk.TextIter iter, Cairo.RectangleInt area, int x, int y, Gtk.Tooltip tooltip);
+               [HasEmitter]
                public virtual signal void queue_draw ();
        }
        [CCode (cheader_filename = "gtksourceview/gtksource.h", type_id = "gtk_source_gutter_renderer_pixbuf_get_type ()")]
@@ -287,6 +292,7 @@ namespace Gtk {
                public string[] get_mime_types ();
                public unowned string get_name ();
                public unowned string get_section ();
+               public unowned string get_style_fallback (string style_id);
                [CCode (array_length = false, array_null_terminated = true)]
                public string[] get_style_ids ();
                public unowned string get_style_name (string style_id);
index 061f2a6deeb42b6ef066a826f95638c68aa17068..e7cf2f50dd35b70f1e8ebcba99c2e32364aff2c4 100644 (file)
@@ -32,7 +32,6 @@ Pixbuf
         .from_pixdata skip=false unowned=false
 Pixdata
         .pixel_data type="unowned uint8[]"
-        .deserialize.stream array array_length_idx=0
         .serialize type="uint8[]" array_length_idx=0
 PixbufLoader
         .get_format unowned
index 69fa7fd4bcc7316648215826e2d4b1a15d968376..20d14a03e88f2e922dc22ce08dc1c7403b692345 100644 (file)
@@ -1,5 +1,7 @@
 * name="(.+)/Source\\1"
 GtkSource name="Gtk" cprefix="Gtk" lower_case_cprefix="gtk_"
+Completion
+        .show#method name="start"
 CompletionProvider
         .*#virtual_method virtual
         .get_icon nullable
index 0e44bd3a3e48ffe6c17ce7ec7ac043dc658903b2..e69b4cf1d88571a5d3d04188b534524555f7239c 100644 (file)
@@ -15,6 +15,8 @@ Stylable.get skip=false
 Table
        .add_actor name="add_child"
        .add_actor_with_properties skip=false
+Widget
+       .paint_background#method name="paint_background_with_defaults"
 
 // Fixed upstream in mx 1.3.1
 ButtonGroup
index 84544519640b9fd2a7e211562db1ddc24befdd84..6fd8f4850cb2641146201491f7ef4eeae134e32e 100644 (file)
@@ -3,7 +3,7 @@
 [CCode (cprefix = "Mx", gir_namespace = "Mx", gir_version = "1.0", lower_case_cprefix = "mx_")]
 namespace Mx {
        [CCode (cheader_filename = "mx/mx.h", type_id = "mx_action_get_type ()")]
-       public class Action : GLib.InitiallyUnowned {
+       public class Action : GLib.InitiallyUnowned, GLib.Action {
                [CCode (has_construct_function = false)]
                public Action ();
                [CCode (has_construct_function = false)]
@@ -11,15 +11,20 @@ namespace Mx {
                public bool get_active ();
                public unowned string get_display_name ();
                public unowned string get_icon ();
-               public unowned string get_name ();
                public void set_active (bool active);
                public void set_display_name (string name);
                public void set_icon (string name);
                public void set_name (string name);
+               [CCode (has_construct_function = false)]
+               public Action.stateful (string name, GLib.VariantType? parameter_type, GLib.Variant state);
+               [CCode (has_construct_function = false)]
+               public Action.with_parameter (string name, GLib.VariantType? parameter_type);
+               [Deprecated (since = "1.4")]
                public bool active { get; set; }
                public string display_name { get; set; }
                public string icon { get; set; }
-               public string name { get; set; }
+               public signal void activate (GLib.Variant? parameter);
+               [Deprecated (since = "1.4")]
                public virtual signal void activated ();
        }
        [CCode (cheader_filename = "mx/mx.h", type_id = "mx_actor_manager_get_type ()")]
@@ -95,6 +100,7 @@ namespace Mx {
                public Mx.ApplicationFlags get_flags ();
                public unowned GLib.List<Mx.Window> get_windows ();
                public void invoke_action (string name);
+               public void invoke_action_with_parameter (string name, GLib.Variant variant);
                public bool is_running ();
                public void quit ();
                [NoWrapper]
@@ -163,6 +169,8 @@ namespace Mx {
                public void set_orientation (Mx.Orientation orientation);
                public void set_scroll_to_focused (bool scroll_to_focused);
                public void set_spacing (uint spacing);
+               [CCode (has_construct_function = false, type = "ClutterActor*")]
+               public BoxLayout.with_orientation (Mx.Orientation orientation);
                public bool enable_animations { get; set; }
                public Mx.Orientation orientation { get; set; }
                public bool scroll_to_focused { get; set; }
@@ -358,18 +366,27 @@ namespace Mx {
                public Entry ();
                public unowned Clutter.Actor get_clutter_text ();
                public unowned string get_hint_text ();
+               public unowned string get_icon_highlight_suffix ();
                public unichar get_password_char ();
                public unowned string get_text ();
                public void set_hint_text (string text);
+               public void set_icon_highlight_suffix (string suffix);
                public void set_password_char (unichar password_char);
                public void set_primary_icon_from_file (string filename);
+               public void set_primary_icon_tooltip_text (string text);
                public void set_secondary_icon_from_file (string filename);
+               public void set_secondary_icon_tooltip_text (string text);
                public void set_text (string text);
                [CCode (has_construct_function = false, type = "ClutterActor*")]
                public Entry.with_text (string text);
                public Clutter.Text clutter_text { get; }
                public string hint_text { get; set; }
+               public string icon_highlight_suffix { get; set; }
                public uint password_char { get; set; }
+               [NoAccessorMethod]
+               public string primary_icon_tooltip_text { owned get; set; }
+               [NoAccessorMethod]
+               public string secondary_icon_tooltip_text { owned get; set; }
                public string text { get; set; }
                public virtual signal void primary_icon_clicked ();
                public virtual signal void secondary_icon_clicked ();
@@ -560,6 +577,7 @@ namespace Mx {
                public double get_acceleration_factor ();
                public uint get_clamp_duration ();
                public ulong get_clamp_mode ();
+               public bool get_clamp_to_center ();
                public double get_deceleration ();
                public uint32 get_mouse_button ();
                public double get_overshoot ();
@@ -568,6 +586,7 @@ namespace Mx {
                public void set_acceleration_factor (double acceleration_factor);
                public void set_clamp_duration (uint clamp_duration);
                public void set_clamp_mode (ulong clamp_mode);
+               public void set_clamp_to_center (bool clamp_to_center);
                public void set_deceleration (double rate);
                public void set_mouse_button (uint32 button);
                public void set_overshoot (double overshoot);
@@ -577,10 +596,13 @@ namespace Mx {
                public double acceleration_factor { get; set; }
                public uint clamp_duration { get; set; }
                public ulong clamp_mode { get; set; }
+               public bool clamp_to_center { get; set; }
                public double deceleration { get; set; }
                public uint mouse_button { get; set; }
                public double overshoot { get; set; }
                public Mx.ScrollPolicy scroll_policy { get; set; }
+               [NoAccessorMethod]
+               public Mx.KineticScrollViewState state { get; }
                public bool use_captured { get; set; }
        }
        [CCode (cheader_filename = "mx/mx.h", type_id = "mx_label_get_type ()")]
@@ -590,12 +612,14 @@ namespace Mx {
                public unowned Clutter.Actor get_clutter_text ();
                public bool get_fade_out ();
                public bool get_line_wrap ();
+               public bool get_show_tooltip ();
                public unowned string get_text ();
                public bool get_use_markup ();
                public Mx.Align get_x_align ();
                public Mx.Align get_y_align ();
                public void set_fade_out (bool fade);
                public void set_line_wrap (bool line_wrap);
+               public void set_show_tooltip (bool show_tooltip);
                public void set_text (string text);
                public void set_use_markup (bool use_markup);
                public void set_x_align (Mx.Align align);
@@ -605,6 +629,7 @@ namespace Mx {
                public Clutter.Text clutter_text { get; }
                public bool fade_out { get; set; }
                public bool line_wrap { get; set; }
+               public bool show_tooltip { get; set; }
                public string text { get; set; }
                public bool use_markup { get; set; }
                public Mx.Align x_align { get; set; }
@@ -779,13 +804,13 @@ namespace Mx {
        public class Stack : Mx.Widget, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable, Mx.Focusable, Mx.Stylable {
                [CCode (has_construct_function = false, type = "ClutterActor*")]
                public Stack ();
-               public bool child_get_fill_space (Clutter.Actor child);
+               public bool child_get_crop (Clutter.Actor child);
                public bool child_get_fit (Clutter.Actor child);
                public Mx.Align child_get_x_align (Clutter.Actor child);
                public bool child_get_x_fill (Clutter.Actor child);
                public Mx.Align child_get_y_align (Clutter.Actor child);
                public bool child_get_y_fill (Clutter.Actor child);
-               public void child_set_fill_space (Clutter.Actor child, bool fill_space);
+               public void child_set_crop (Clutter.Actor child, bool crop);
                public void child_set_fit (Clutter.Actor child, bool fit);
                public void child_set_x_align (Clutter.Actor child, Mx.Align x_align);
                public void child_set_x_fill (Clutter.Actor child, bool x_fill);
@@ -989,6 +1014,7 @@ namespace Mx {
                public static bool is_in_browse_mode ();
                public void set_text (string text);
                public void set_tip_area (Clutter.Geometry area);
+               public void set_tip_area_from_actor (Clutter.Actor actor);
                public void show ();
                public string text { get; set; }
                public Clutter.Geometry tip_area { get; set; }
@@ -1027,6 +1053,8 @@ namespace Mx {
                public void long_press_query (Clutter.ButtonEvent event);
                [NoWrapper]
                public virtual void paint_background (Clutter.Actor background, Clutter.Color color);
+               [CCode (cname = "mx_widget_paint_background")]
+               public void paint_background_with_defaults ();
                public void set_disabled (bool disabled);
                public void set_menu (Mx.Menu menu);
                public void set_tooltip_delay (uint delay);
@@ -1235,6 +1263,13 @@ namespace Mx {
                FIT,
                CROP
        }
+       [CCode (cheader_filename = "mx/mx.h", cprefix = "MX_KINETIC_SCROLL_VIEW_STATE_")]
+       public enum KineticScrollViewState {
+               IDLE,
+               PANNING,
+               SCROLLING,
+               CLAMPING
+       }
        [CCode (cheader_filename = "mx/mx.h", cprefix = "MX_LONG_PRESS_")]
        public enum LongPressAction {
                QUERY,
@@ -1302,17 +1337,17 @@ namespace Mx {
        public delegate void ActionCallbackFunc (Mx.Action action);
        [CCode (cheader_filename = "mx/mx.h", instance_pos = 2.9)]
        public delegate void ClipboardCallbackFunc (Mx.Clipboard clipboard, string text);
-       [CCode (cheader_filename = "mx/mx.h")]
+       [CCode (cheader_filename = "mx/mx.h", cname = "MX_MAJOR_VERSION")]
        public const int MAJOR_VERSION;
-       [CCode (cheader_filename = "mx/mx.h")]
+       [CCode (cheader_filename = "mx/mx.h", cname = "MX_MICRO_VERSION")]
        public const int MICRO_VERSION;
-       [CCode (cheader_filename = "mx/mx.h")]
+       [CCode (cheader_filename = "mx/mx.h", cname = "MX_MINOR_VERSION")]
        public const int MINOR_VERSION;
-       [CCode (cheader_filename = "mx/mx.h")]
+       [CCode (cheader_filename = "mx/mx.h", cname = "MX_PARAM_TRANSLATEABLE")]
        public const int PARAM_TRANSLATEABLE;
-       [CCode (cheader_filename = "mx/mx.h")]
+       [CCode (cheader_filename = "mx/mx.h", cname = "MX_VERSION_HEX")]
        public const int VERSION_HEX;
-       [CCode (cheader_filename = "mx/mx.h")]
+       [CCode (cheader_filename = "mx/mx.h", cname = "MX_VERSION_S")]
        public const string VERSION_S;
        [CCode (cheader_filename = "mx/mx.h")]
        public static void actor_box_clamp_to_pixels (Clutter.ActorBox box);