summaryrefslogtreecommitdiff
path: root/src/simple-scan.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2021-08-22 19:00:53 +0200
committerJörg Frings-Fürst <debian@jff.email>2021-08-22 19:00:53 +0200
commit9a828fe5ebd2383cce394eb76f44d14a9dbf143e (patch)
treece52323fc58d008fd7894b6bdc68b878f405c7df /src/simple-scan.vala
parentaaee9a923e009ee33fad324687579ede5de7e6ce (diff)
parentb97bb9c9e991504bb4fae916a75a8426b78b68b9 (diff)
Merge branch 'release/debian/40.1-1'debian/40.1-1
Diffstat (limited to 'src/simple-scan.vala')
-rw-r--r--src/simple-scan.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simple-scan.vala b/src/simple-scan.vala
index 3f495e5..c15a541 100644
--- a/src/simple-scan.vala
+++ b/src/simple-scan.vala
@@ -50,6 +50,8 @@ public class SimpleScan : Gtk.Application
{
base.startup ();
+ Hdy.init ();
+
app = new AppWindow ();
book = app.book;
app.start_scan.connect (scan_cb);
@@ -1773,7 +1775,7 @@ public class SimpleScan : Gtk.Application
* but will not work on KDE, LXDE, XFCE, ... */
inhibit_cookie = inhibit (app, Gtk.ApplicationInhibitFlags.IDLE, reason);
- if (!is_inhibited (Gtk.ApplicationInhibitFlags.IDLE))
+ if (inhibit_cookie == 0)
{
/* If the previous method didn't work, try the one
* provided by Freedesktop. It should work with KDE,