mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
move setValue method to the abstraction set
This commit is contained in:
parent
e782204b43
commit
23ac5f4e0d
3 changed files with 13 additions and 26 deletions
|
|
@ -61,4 +61,17 @@ abstract class Entry
|
||||||
\GtkEntry $entry,
|
\GtkEntry $entry,
|
||||||
\GdkEvent $event
|
\GdkEvent $event
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
|
public function setValue(
|
||||||
|
?string $value = null
|
||||||
|
): void
|
||||||
|
{
|
||||||
|
$this->gtk->set_text(
|
||||||
|
trim(
|
||||||
|
strval(
|
||||||
|
$value
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -28,17 +28,4 @@ class Request extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\Address\Navbar\E
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setValue(
|
|
||||||
?string $value = null
|
|
||||||
): void
|
|
||||||
{
|
|
||||||
$this->gtk->set_text(
|
|
||||||
trim(
|
|
||||||
strval(
|
|
||||||
$value
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
@ -26,17 +26,4 @@ class Filter extends \Yggverse\Yoda\Abstract\Entity\Window\Tab\History\Navbar\En
|
||||||
$entry->get_text()
|
$entry->get_text()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setValue(
|
|
||||||
?string $value = null
|
|
||||||
): void
|
|
||||||
{
|
|
||||||
$this->gtk->set_text(
|
|
||||||
trim(
|
|
||||||
strval(
|
|
||||||
$value
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue