From d2fee4cbdaf3a6bf821ffa1dabf631021fb8fcaf Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 26 Jul 2024 23:31:10 +0300 Subject: [PATCH] fix data types returned --- src/Entity/Browser/Container/Tab.php | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/Entity/Browser/Container/Tab.php b/src/Entity/Browser/Container/Tab.php index 7d3dad7..fc2181d 100644 --- a/src/Entity/Browser/Container/Tab.php +++ b/src/Entity/Browser/Container/Tab.php @@ -58,9 +58,9 @@ class Tab // Init events $this->gtk->connect( 'switch-page', - function ( - ?GtkNotebook $self, - ?GtkWidget $child, + function( + GtkNotebook $self, + GtkWidget $child, int $page_num ) { // Update header bar title @@ -80,9 +80,9 @@ class Tab $this->gtk->connect( 'page-added', - function ( - ?GtkNotebook $self, - ?GtkWidget $child, + function( + GtkNotebook $self, + GtkWidget $child, int $page_num ) { $this->reorder(); @@ -91,9 +91,9 @@ class Tab $this->gtk->connect( 'page-removed', - function ( - ?GtkNotebook $self, - ?GtkWidget $child, + function( + GtkNotebook $self, + GtkWidget $child, int $page_num ) { // Free memory pool @@ -113,9 +113,9 @@ class Tab $this->gtk->connect( 'page-reordered', - function ( - ?GtkNotebook $self, - ?GtkWidget $child, + function( + GtkNotebook $self, + GtkWidget $child, int $page_num ) { $this->reorder(); @@ -146,9 +146,9 @@ class Tab $label->connect( 'button-press-event', - function ( - ?GtkEventBox $self, - ?GdkEvent $event + function( + GtkEventBox $self, + GdkEvent $event ) { // Close tab on double click if ($event->type == Gdk::DOUBLE_BUTTON_PRESS)