Public bug reported:

System: Ubuntu 9.04 Core 2 Quad, just updated
Package: gtk/glib
To reproduce I can provide link to app code.
Don't know what exactly causes the bug.

--------------------------------------------------------------

I'm struggling with a gtk bug that I don't know if is ubuntu specific
but i suspect it is.

In my app when I open a file chooser dialog the dialog will freeze with
an hourglass and home folder and desktop icons are missing from the left
pane. the dialog never unfreezes.

If I take the same open dialog code and compile in a small test app it
works.

A user on the gtk list thinks that its related to linking of libgio.

I link my app with gtk, gtksourcview1, gtkglext1, glew, opengl, openal,
sdl, libxml and others.

This is the code I use which works as a simple hello world app:

-------------------------------------

#include <gtk/gtk.h>

void
hello (void)
{
g_print ("Hello World\n");
}

void
destroy (void)
{
gtk_main_quit ();
}

void opendialog(void){
GtkWidget *filedialog;

filedialog = gtk_file_chooser_dialog_new ("Open File", NULL,
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN,
GTK_RESPONSE_ACCEPT, NULL);

GtkFileFilter *filter;
filter = gtk_file_filter_new();

gtk_file_filter_add_pattern(filter, "*.xml");

gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(filed ialog), filter);


if (gtk_dialog_run (GTK_DIALOG (filedialog)) == GTK_RESPONSE_ACCEPT)
{
char *filename;

filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER
(filedialog));
g_free (filename);
}

gtk_widget_destroy(filedialog);

}


main (int argc, char *argv[])
{
GtkWidget *window;
GtkWidget *button;

gtk_init (&argc, &argv);

window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC (destroy), NULL);
gtk_container_border_width (GTK_CONTAINER (window), 10);

button = gtk_button_new_with_label ("Hello World");

gtk_signal_connect (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (opendialog), NULL);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
hello,
GTK_OBJECT (window));
gtk_container_add (GTK_CONTAINER (window), button);
gtk_widget_show (button);

gtk_widget_show (window);

gtk_main ();

return 0;
}

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: fglrx
Package: libgtk2.0-0 2.16.1-0ubuntu2
ProcEnviron:
 LANG=en_DK.UTF-8
 SHELL=/bin/bash
SourcePackage: gtk+2.0
Uname: Linux 2.6.28-11-generic i686

** Affects: gtk+2.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
gtkFileChooser dialog freezes, home and desktop missing
https://bugs.launchpad.net/bugs/384496
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gtk+2.0 in ubuntu.

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to