My first PHP-GTK program

544387788a9e99d8b7cf0a5d277903fc.png
1. create the
GtkWindow
;
2. connect the
GtkWindow
on close event;
3. on the close event, quit
Gtk::main
loop;
4. create the
GtkBox
layout;
5. create a
GtkLabel
and add to layout;
6. create a
GtkEntry
and add to layout;
7. create a
GtkButton
and add to layout;
8. create a
GtkScrolledWindow
and
GtkTreeview
;
9. add
GtkTreeview
inside
GtkScrolledWindow
to enable scroll on
GtkTreeView
;
10. add columns to
GtkTreeView
;
11. create a
GtkListStore
to store the values, and add it to
GtkTreeView
;
12. connect clicked signal to
GtkButton
;
13. when click on button, get
GtkEntry::get_text
;
14. if text wrote is not empty, add this value to model and clean
GtkEntry
;
15. if not, display alert with
GtkMessageDialog
;