[geary/mjog/780-fix-content-area-api-change] components.InfoBar: Fix compilation errors with get_action_area on F31



commit 03646d9dbac4183e08f317cb65e801347a6918bc
Author: Michael Gratton <mike vee net>
Date:   Tue Mar 31 08:15:20 2020 +1100

    components.InfoBar: Fix compilation errors with get_action_area on F31
    
    GTK 3.24.16 fixed the bindings annotation for
    Gtk.InfoBar.get_action_area() and this has been picked up by valac
    master already.
    
    Fixes #780

 src/client/components/components-info-bar.vala | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/client/components/components-info-bar.vala b/src/client/components/components-info-bar.vala
index 6e3506c0..943218b2 100644
--- a/src/client/components/components-info-bar.vala
+++ b/src/client/components/components-info-bar.vala
@@ -94,4 +94,10 @@ public class Components.InfoBar : Gtk.InfoBar {
         show_all();
     }
 
+    // GTK 3.24.16 fixed the binding for this, but that and the VAPI
+    // change has yet to trickle down to common distros like F31
+    public new Gtk.Box get_action_area() {
+        return (Gtk.Box) base.get_action_area();
+    }
+
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]