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



commit 007558fc28629ae660ebdb90b14ec65c391e8dae
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/application/application-main-window.vala | 6 +++---
 src/client/components/components-info-bar.vala      | 6 ++++++
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/client/application/application-main-window.vala 
b/src/client/application/application-main-window.vala
index d4189970..3f531e86 100644
--- a/src/client/application/application-main-window.vala
+++ b/src/client/application/application-main-window.vala
@@ -335,11 +335,11 @@ public class Application.MainWindow :
 
     private Components.InfoBarStack info_bars = new Components.InfoBarStack();
 
-    private Gtk.InfoBar offline_infobar;
+    private Components.InfoBar offline_infobar;
 
-    private Gtk.InfoBar cert_problem_infobar;
+    private Components.InfoBar cert_problem_infobar;
 
-    private Gtk.InfoBar auth_problem_infobar;
+    private Components.InfoBar auth_problem_infobar;
 
     private Components.ProblemReportInfoBar? service_problem_infobar = null;
 
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]