From 783d8d067cb6caacb5b74e3d43063071259e28a7 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 10 Jul 2024 13:09:35 +0300 Subject: [PATCH] draft configure-event --- src/Entity/Browser.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Entity/Browser.php b/src/Entity/Browser.php index 76c23491..9d5dbb9c 100644 --- a/src/Entity/Browser.php +++ b/src/Entity/Browser.php @@ -62,5 +62,16 @@ class Browser // Render $this->gtk->show(); + + // Init events + $this->gtk->connect( + 'configure-event', + function( + \GtkWindow $window, + // \GdkEvent $event + ) { + // @TODO render data wordwrap by $window->get_size() + } + ); } } \ No newline at end of file