]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk4: Make Gtk.show_uri_full() an instance method of Gtk.Window
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 9 Aug 2022 21:07:45 +0000 (23:07 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 27 Oct 2022 08:24:49 +0000 (10:24 +0200)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1347

vapi/gtk4.vapi
vapi/metadata/Gtk-4.0.metadata

index 474846697ba0fffc7445f32e335e7735a0b56b56..51553c7de723f9ffd5f5096dffeb15ae6eecbb37 100644 (file)
@@ -12376,6 +12376,8 @@ namespace Gtk {
                public void set_title (string? title);
                public void set_titlebar (Gtk.Widget? titlebar);
                public void set_transient_for (Gtk.Window? parent);
+               [CCode (cheader_filename = "gtk/gtk.h", cname = "gtk_show_uri_full", finish_name = "gtk_show_uri_full_finish")]
+               public async bool show_uri_full (string uri, uint32 timestamp, GLib.Cancellable? cancellable) throws GLib.Error;
                public void unfullscreen ();
                public void unmaximize ();
                public void unminimize ();
@@ -14375,8 +14377,6 @@ namespace Gtk {
        [CCode (cheader_filename = "gtk/gtk.h")]
        public static void show_uri (Gtk.Window? parent, string uri, uint32 timestamp);
        [CCode (cheader_filename = "gtk/gtk.h")]
-       public static async bool show_uri_full (Gtk.Window? parent, string uri, uint32 timestamp, GLib.Cancellable? cancellable) throws GLib.Error;
-       [CCode (cheader_filename = "gtk/gtk.h")]
        public static void test_accessible_assertion_message_role (string domain, string file, int line, string func, string expr, Gtk.Accessible accessible, Gtk.AccessibleRole expected_role, Gtk.AccessibleRole actual_role);
        [CCode (cheader_filename = "gtk/gtk.h")]
        public static bool test_accessible_has_property (Gtk.Accessible accessible, Gtk.AccessibleProperty property);
index 1d81ecfc92e2c7c9840b291c0ca375628873c5c2..cc2cf65f7e4606834860ed08d407369010f04541 100644 (file)
@@ -340,6 +340,8 @@ TreeModel
   .get_value return_void
   .rows_reordered skip
 show_about_dialog skip=false
+show_uri_full parent="Gtk.Window" symbol_type="method" instance_idx=0 finish_name="gtk_show_uri_full_finish"
+show_uri_full_finish parent="Gtk.Window" symbol_type="method" instance_idx=0
 test_init skip=false
 
 test_init.argvp unowned