mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix data types returned
This commit is contained in:
parent
a8cca0ed5b
commit
d2fee4cbda
1 changed files with 15 additions and 15 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue