How do I use the buttons in GtkFileSelection? - MegaBul  function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. { var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) { for(var i=0; i" img.outerHTML = strNewHTML i = i-1 } } } } window.attachEvent("onload", correctPNG);

How do I use the buttons in GtkFileSelection?

October 10, 2009 by phpman   Comments (0)



// 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);

It is not currently possible to do it this way:

// Create the dialog window
$fs = &new GtkFileSelection("Save file");

// Connect a function
$fs->ok_button->connect("clicked", "enddialog");

// Connect the destroy action on the dialog window
$fs->ok_button->connect_object("clicked", "destroy", $fs);