Browse Source

grab focus on first widget

PHP-GTK3
yggverse 4 months ago
parent
commit
c840091f62
  1. 7
      src/Entity/Browser/Menu/Help/About.php

7
src/Entity/Browser/Menu/Help/About.php

@ -173,6 +173,13 @@ class About @@ -173,6 +173,13 @@ class About
// Tune up the label
if ($label = $dialog->get_message_area()->get_children())
{
if (empty($label[0]))
{
throw new Exception;
}
$label[0]->grab_focus();
if (empty($label[1]))
{
throw new Exception;

Loading…
Cancel
Save