com gtk/php-gtk: Gtk+ errors on GtkFileChooserButton construction with Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER action. : test/bug_gtkfilechooserbutton_actionselectfolder.ph pw

[email protected] (David Soria Parra) Fri, 31 Mar 2006 14:52:45 +0000
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    725b65d114b6f783a7df66bbd2e173431c72f796
Author:    Scott Mattocks <[email protected]>         Fri, 31 Mar 2006 14:52:45 +0000
Parents:   f5af390a45dec3edaa74d7fae45c19730bd08b6b
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=725b65d114b6f783a7df66bbd2e173431c72f796

Log:
Gtk+ errors on GtkFileChooserButton construction with Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER action.

Changed paths:
  A  test/bug_gtkfilechooserbutton_actionselectfolder.phpw


Diff:
725b65d114b6f783a7df66bbd2e173431c72f796
diff --git a/test/bug_gtkfilechooserbutton_actionselectfolder.phpw b/test/bug_gtkfilechooserbutton_actionselectfolder.phpw
new file mode 100644
index 0000000..6cbc02b
--- /dev/null
+++ b/test/bug_gtkfilechooserbutton_actionselectfolder.phpw
@@ -0,0 +1,29 @@
+<?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();
+?>