Re: Old gtk app, file open dialog freezes (Ubuntu 9.04)



Seem likely that I have the same problem.
This must be an Ubuntu bug then?

I just can't see how I can do without the g_io functions that I use.

On Sat, 2009-06-06 at 07:50 +0200, Miroslav Rajcic wrote:
I had the same problem with my program, and discovered by chance
that linking with gio library seems to cause this.
When I canged some unrelated code to older GnomeVfs, the file open dialog 
started to work fine on the new Ubuntu 9.04.

Hopefully, the same tip could work for you.

Regards,
  Miroslav

----- Original Message ----- 
From: "Jack Turner" <jacob juvul com>
To: <gtk-app-devel-list gnome org>
Sent: Saturday, June 06, 2009 2:49 AM
Subject: Old gtk app, file open dialog freezes (Ubuntu 9.04)


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

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


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



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.53/2156 - Release Date: 06/05/09 
06:24:00

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]