From 79e8419589f060e945333c84cc494ca67cb78f75 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Mon, 15 Mar 2021 16:02:29 +0100 Subject: gtk4: Update to 4.1.2 --- vapi/gtk4.vapi | 26 +++++++++++++------------- vapi/metadata/Gtk-4.0.metadata | 12 ++++++++++++ 2 files changed, 25 insertions(+), 13 deletions(-) (limited to 'vapi') diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index bdfcd15db..99574a9c2 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -6463,7 +6463,7 @@ namespace Gtk { public void set_license_type (Gtk.License license_type); public void set_logo (Gdk.Paintable? logo); public void set_logo_icon_name (string? icon_name); - public void set_program_name (string name); + public void set_program_name (string? name); public void set_system_information (string? system_information); public void set_translator_credits (string? translator_credits); public void set_version (string? version); @@ -8205,9 +8205,10 @@ namespace Gtk { public void unref (); public unowned Gtk.ExpressionWatch watch (GLib.Object? this_, owned Gtk.ExpressionNotify notify); } - [CCode (cheader_filename = "gtk/gtk.h", has_type_id = false, ref_function = "gtk_expression_watch_ref", unref_function = "gtk_expression_watch_unref")] - [Compact] + [CCode (cheader_filename = "gtk/gtk.h", ref_function = "gtk_expression_watch_ref", type_id = "gtk_expression_watch_get_type ()", unref_function = "gtk_expression_watch_unref")] public class ExpressionWatch { + [CCode (has_construct_function = false)] + protected ExpressionWatch (); public bool evaluate (GLib.Value value); public unowned Gtk.ExpressionWatch @ref (); public void unref (); @@ -11101,10 +11102,6 @@ namespace Gtk { public signal void preedit_changed (string preedit); public signal void toggle_overwrite (); } - [CCode (cheader_filename = "gtk/gtk.h", has_type_id = false)] - [Compact] - public class TextBTree { - } [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_text_buffer_get_type ()")] public class TextBuffer : GLib.Object { [CCode (has_construct_function = false)] @@ -12310,6 +12307,8 @@ namespace Gtk { public unowned Gtk.Widget? get_focus (); public bool get_focus_visible (); public unowned Gtk.WindowGroup get_group (); + [Version (since = "4.2")] + public bool get_handle_menubar_accel (); public bool get_hide_on_close (); public unowned string? get_icon_name (); public bool get_mnemonics_visible (); @@ -12339,6 +12338,8 @@ namespace Gtk { public void set_display (Gdk.Display display); public void set_focus (Gtk.Widget? focus); public void set_focus_visible (bool setting); + [Version (since = "4.2")] + public void set_handle_menubar_accel (bool handle_menubar_accel); public void set_hide_on_close (bool setting); public void set_icon_name (string? name); public static void set_interactive_debugging (bool enable); @@ -12369,6 +12370,8 @@ namespace Gtk { public Gtk.Widget focus_widget { owned get; set; } [NoAccessorMethod] public bool fullscreened { get; set construct; } + [Version (since = "4.2")] + public bool handle_menubar_accel { get; set; } public bool hide_on_close { get; set; } public string icon_name { get; set; } [NoAccessorMethod] @@ -12870,11 +12873,6 @@ namespace Gtk { public Gtk.Requisition? copy (); public void free (); } - [CCode (cheader_filename = "gtk/gtk.h", has_type_id = false)] - public struct SettingsValue { - public weak string origin; - public GLib.Value value; - } [CCode (cheader_filename = "gtk/gtk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gtk_text_iter_get_type ()")] public struct TextIter { public void assign (Gtk.TextIter other); @@ -13527,7 +13525,9 @@ namespace Gtk { public enum Ordering { SMALLER, EQUAL, - LARGER + LARGER; + [CCode (cheader_filename = "gtk/gtk.h")] + public static Gtk.Ordering from_cmpfunc (int cmpfunc_result); } [CCode (cheader_filename = "gtk/gtk.h", cprefix = "GTK_ORIENTATION_", type_id = "gtk_orientation_get_type ()")] public enum Orientation { diff --git a/vapi/metadata/Gtk-4.0.metadata b/vapi/metadata/Gtk-4.0.metadata index 76cfd5e3b..d918d3c8e 100644 --- a/vapi/metadata/Gtk-4.0.metadata +++ b/vapi/metadata/Gtk-4.0.metadata @@ -6,10 +6,22 @@ * cheader_filename="gtk/gtk.h" IMContext cheader_filename="gtk/gtk.h,gtk/gtkimmodule.h" +// Needs to be in gtk4-unix-print +PageSetupUnixDialog skip +Printer skip +PrinterFunc skip +PrintBackend skip +PrintCapabilities skip +PrintJob skip +PrintJobCompleteFunc skip +PrintUnixDialog skip +enumerate_printers skip + // Causes vapigen issues, not sure why -- without name // G-I doesn't support structs Border struct +ExpressionWatch compact=false Requisition struct TextIter struct TreeIter struct -- cgit v1.2.1