Skip to content

Commit 2f47b06

Browse files
committed
Restructure examples to ease getting started
1 parent e9e5acf commit 2f47b06

9 files changed

Lines changed: 5 additions & 45 deletions
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$loop = Factory::create();
1010
$launcher = new Launcher($loop);
1111

12-
$form = new FormsDialog($launcher);
12+
$form = new FormsDialog();
1313
$form->setWindowIcon('info');
1414
$form->setText('Enter user information');
1515

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$loop = Factory::create();
1111

1212
$launcher = new Launcher($loop);
13-
$builder = new Builder($launcher);
13+
$builder = new Builder();
1414

1515
$main = function() use (&$main, $builder, $launcher) {
1616
$menu = $builder->listMenu(array('Introduction', 'Tests', 'License', 'Bugs / Issues'), 'Main menu');
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
$n = 0;
2020
$loop->addPeriodicTimer(10.0, function ($timer) use ($zen, &$n) {
21+
static $icons = array('error', 'warning', 'info', '');
22+
$zen->setIcon($icons[array_rand($icons)]);
23+
2124
$zen->setMessage('Hi' . ++$n);
2225
});
2326

examples/progress.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)