]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gtk+-3.0: Deprecated abstract methods are not required to be implemented
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 22 May 2020 16:31:46 +0000 (18:31 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 22 Jun 2020 08:12:32 +0000 (10:12 +0200)
vapi/gtk+-3.0.vapi
vapi/metadata/Gtk-3.0.metadata

index 295c54d6c64f69e74511a573e2dcb4a03957655e..a0d97c0ea12992298def41f9ce6f1f580b698591 100644 (file)
@@ -1567,7 +1567,7 @@ namespace Gtk {
                [Version (since = "2.18")]
                public bool get_sensitive ();
                [Version (deprecated = true, deprecated_since = "3.0", replacement = "get_preferred_size")]
-               public abstract void get_size (Gtk.Widget widget, Gdk.Rectangle? cell_area, out int x_offset, out int y_offset, out int width, out int height);
+               public virtual void get_size (Gtk.Widget widget, Gdk.Rectangle? cell_area, out int x_offset, out int y_offset, out int width, out int height);
                [Version (since = "3.0")]
                public Gtk.StateFlags get_state (Gtk.Widget? widget, Gtk.CellRendererState cell_state);
                [Version (since = "2.18")]
@@ -10760,9 +10760,9 @@ namespace Gtk {
        [CCode (cheader_filename = "gtk/gtk.h", type_id = "gtk_style_provider_get_type ()")]
        public interface StyleProvider : GLib.Object {
                [Version (deprecated = true, deprecated_since = "3.8", since = "3.0")]
-               public abstract unowned Gtk.IconFactory? get_icon_factory (Gtk.WidgetPath path);
+               public virtual unowned Gtk.IconFactory? get_icon_factory (Gtk.WidgetPath path);
                [Version (deprecated = true, deprecated_since = "3.8", since = "3.0")]
-               public abstract Gtk.StyleProperties? get_style (Gtk.WidgetPath path);
+               public virtual Gtk.StyleProperties? get_style (Gtk.WidgetPath path);
                [Version (since = "3.0")]
                public abstract bool get_style_property (Gtk.WidgetPath path, Gtk.StateFlags state, GLib.ParamSpec pspec, ref GLib.Value value);
        }
index efc40064e6dd8c9108f41a3a0fc341202e10f0aa..9292b9040a6f01d388cb0d653c367d14038bc762 100644 (file)
@@ -242,8 +242,10 @@ TreeModel
 
 // Abstract vs. virtual
 CellRenderer
-  .get_size#virtual_method abstract
   .render#virtual_method abstract
+StyleProvider
+  .get_icon_factory#virtual_method virtual
+  .get_style#virtual_method virtual
 TreeModel
   .iter_previous#virtual_method virtual
   .ref_node#virtual_method virtual