Old gtk app, file open dialog freezes (Ubuntu 9.04)
- From: Jack Turner <jacob juvul com>
- To: gtk-app-devel-list gnome org
- Subject: Old gtk app, file open dialog freezes (Ubuntu 9.04)
- Date: Sat, 06 Jun 2009 02:49:32 +0200
Hello List
I just compiled an old gtk app of mine and everything work except
when I try opening a file.
The dialog will hang with an hourglass and some of the folders in the
left is missing.
I use this code:
filedialog = gtk_file_chooser_dialog_new ("Open File", parent_window,
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN,
GTK_RESPONSE_ACCEPT, NULL);
gtk_dialog_set_default_response(filedialog, GTK_RESPONSE_ACCEPT);
GtkFileFilter *filter;
filter = gtk_file_filter_new();
gtk_file_filter_add_pattern(filter, "*.xml");
gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(filedialog), filter);
gtk_widget_show(filedialog);
if (gtk_dialog_run (GTK_DIALOG (filedialog)) == GTK_RESPONSE_ACCEPT)
{
...
Can anyone tell me whats wrong?
The system is Ubuntu 9.04
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]