[shotwell/wip/gtk4] Fix fullscreening in viewer



commit 20a8ee81e069a9e5de902429de63bfee0db7051f
Author: Jens Georg <mail jensge org>
Date:   Wed Apr 20 16:22:28 2022 +0200

    Fix fullscreening in viewer

 src/direct/DirectPhotoPage.vala | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/direct/DirectPhotoPage.vala b/src/direct/DirectPhotoPage.vala
index 894ef5bf..9bb3ccbb 100644
--- a/src/direct/DirectPhotoPage.vala
+++ b/src/direct/DirectPhotoPage.vala
@@ -209,8 +209,7 @@ public class DirectPhotoPage : EditingHostPage {
         get_command_manager().reset();
     }
     
-    #if 0
-    protected override bool on_double_click(Gdk.EventButton event) {
+    protected override bool on_double_click(Gtk.EventController event, double x, double y) {
         FullscreenWindow? fs = get_container() as FullscreenWindow;
         if (fs != null) {
             fs.close();
@@ -225,9 +224,8 @@ public class DirectPhotoPage : EditingHostPage {
             }
         }
         
-        return base.on_double_click(event);
+        return base.on_double_click(event, x, y);
     }
-    #endif
     
     protected override void update_ui(bool missing) {
         bool sensitivity = !missing;


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