[shotwell] piwigo: Use common function for header-bar check



commit 6543a01ffe8f36c378116e0d7e866bc37ecd07b3
Author: Jens Georg <mail jensge org>
Date:   Fri Jul 12 12:24:37 2019 +0200

    piwigo: Use common function for header-bar check

 plugins/shotwell-publishing/PiwigoPublishing.vala | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/plugins/shotwell-publishing/PiwigoPublishing.vala 
b/plugins/shotwell-publishing/PiwigoPublishing.vala
index 8a10eee0..2efcd9f7 100644
--- a/plugins/shotwell-publishing/PiwigoPublishing.vala
+++ b/plugins/shotwell-publishing/PiwigoPublishing.vala
@@ -1042,10 +1042,7 @@ internal class SSLErrorPane : Shotwell.Plugins.Common.BuilderPane {
             info.clicked.connect (() => {
                 var simple_cert = new Gcr.SimpleCertificate (cert.certificate.data);
                 var widget = new Gcr.CertificateWidget (simple_cert);
-                bool use_header = true;
-                Gtk.Settings.get_default ().get ("gtk-dialogs-use-header", out use_header);
-                var flags = (Gtk.DialogFlags) 0;
-                if (use_header) {
+                if (Resources.use_header_bar () == 1) {
                     flags |= Gtk.DialogFlags.USE_HEADER_BAR;
                 }
 


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