Browse Source

fix data types returned

PHP-GTK3
yggverse 4 months ago
parent
commit
d2fee4cbda
  1. 20
      src/Entity/Browser/Container/Tab.php

20
src/Entity/Browser/Container/Tab.php

@ -59,8 +59,8 @@ class Tab
$this->gtk->connect( $this->gtk->connect(
'switch-page', 'switch-page',
function( function(
?GtkNotebook $self, GtkNotebook $self,
?GtkWidget $child, GtkWidget $child,
int $page_num int $page_num
) { ) {
// Update header bar title // Update header bar title
@ -81,8 +81,8 @@ class Tab
$this->gtk->connect( $this->gtk->connect(
'page-added', 'page-added',
function( function(
?GtkNotebook $self, GtkNotebook $self,
?GtkWidget $child, GtkWidget $child,
int $page_num int $page_num
) { ) {
$this->reorder(); $this->reorder();
@ -92,8 +92,8 @@ class Tab
$this->gtk->connect( $this->gtk->connect(
'page-removed', 'page-removed',
function( function(
?GtkNotebook $self, GtkNotebook $self,
?GtkWidget $child, GtkWidget $child,
int $page_num int $page_num
) { ) {
// Free memory pool // Free memory pool
@ -114,8 +114,8 @@ class Tab
$this->gtk->connect( $this->gtk->connect(
'page-reordered', 'page-reordered',
function( function(
?GtkNotebook $self, GtkNotebook $self,
?GtkWidget $child, GtkWidget $child,
int $page_num int $page_num
) { ) {
$this->reorder(); $this->reorder();
@ -147,8 +147,8 @@ class Tab
$label->connect( $label->connect(
'button-press-event', 'button-press-event',
function( function(
?GtkEventBox $self, GtkEventBox $self,
?GdkEvent $event GdkEvent $event
) { ) {
// Close tab on double click // Close tab on double click
if ($event->type == Gdk::DOUBLE_BUTTON_PRESS) if ($event->type == Gdk::DOUBLE_BUTTON_PRESS)

Loading…
Cancel
Save