Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 11c5630b2c8f00f64861e0dac51a202a > files > 52

php-gtk2-2.0.1-12mdv2010.0.i586.rpm

<?php
// Create a window.
$window = new GtkWindow();
// Set it up to close cleanly.
$window->connect_simple('destroy', array('Gtk', 'main_quit'));

// Create a GtkFileChooserButton. Errors occur here.
/*
(bug_gtkfilechooserbutton_actionselectfolder.phpw:5679): Gtk-CRITICAL **: gtk_file_system_get_volume_for_path: assertion `path != NULL' failed

(bug_gtkfilechooserbutton_actionselectfolder.phpw:5679): Gtk-CRITICAL **: gtk_file_system_render_icon: assertion `path != NULL' failed

(bug_gtkfilechooserbutton_actionselectfolder.phpw:5679): Gtk-CRITICAL **: gtk_file_system_get_parent: assertion `path != NULL' failed

(bug_gtkfilechooserbutton_actionselectfolder.phpw:5679): Gtk-CRITICAL **: gtk_file_system_get_folder: assertion `path != NULL' failed

// Repeated a few times.
*/
$file = new GtkFileChooserButton('Test',
                                 Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER
                                 );

// Add the button to the window.
$window->add($file);

// Show everything and start the loop.
$window->show_all();
Gtk::main();
?>