[shotwell/wip/gtk4: 94/154] Replace resize event
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/wip/gtk4: 94/154] Replace resize event
- Date: Sat, 1 Oct 2022 17:53:16 +0000 (UTC)
commit 61187cfd336691ef4f4c2dc99dce5eb26c5ad64f
Author: Jens Georg <mail jensge org>
Date: Sun Apr 10 00:18:57 2022 +0200
Replace resize event
src/PhotoPage.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala
index b9046b41..be70f123 100644
--- a/src/PhotoPage.vala
+++ b/src/PhotoPage.vala
@@ -437,7 +437,9 @@ public abstract class EditingHostPage : SinglePhotoPage {
// the viewport can change size independent of the window being resized (when the searchbar
// disappears, for example)
- //viewport.resize.connect(on_viewport_resized);
+ viewport.notify["default-height"].connect(on_viewport_resized);
+ viewport.notify["default-width"].connect(on_viewport_resized);
+ viewport.notify["maximized"].connect(on_viewport_resized);
// set up page's toolbar (used by AppWindow for layout and FullscreenWindow as a popup)
var toolbar = get_toolbar();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]