]> 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>
Fri, 22 May 2020 22:18:41 +0000 (00:18 +0200)
vapi/gtk+-3.0.vapi
vapi/metadata/Gtk-3.0.metadata

index 7350bbedfbf7887082d3d75445bc65ac37724634..8d794ddfe9116cead5de901d72ffaf4eb4a73b4d 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 392922596bbb3d23aa106f6770daf88543a97004..95bb0d8e6cc0da0c8f9827a199997c2adbcc1a16 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