faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 3 people (100%) answered Yes
Recently 3 of 3 people (100%) answered Yes

Entry

How do I know which GTK Classes are supported?
How do I use the buttons in GtkFileSelection?

Mar 20th, 2008 17:30
ha mo, Himanshu Jain,


The following code will show the defined classes. All the PHP-GTK 
classes will be listed along with one or two others. 
$array = get_declared_classes();
while(list(,$classname) = each($array)) {
    echo $classname."\n";
// Create the dialog window:
    $fs = &new GtkFileSelection("Save file");
// Get a handle to the Ok button:
    $ok_button = $fs->ok_button;
// Connect a function:
    $ok_button->connect("clicked", "enddialog");
// Connect the destroy action on the dialog window:
    $ok_button->connect_object("clicked", "destroy", $fs);
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com