Quantcast
Channel: PHP-GTK Community - GtkWidget
Viewing all articles
Browse latest Browse all 2

Getting a descendant (child) widget by name

$
0
0

This script gets a descedant (child) widget by name using recursion. A name should be defined for the child previously, if not as a name is considered the class name.

The name is passed as a variable by reference, when the target is found it is stored in this variable.
This will change the variable type from string to object, this very information is used as a condition to stop further recursion.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images