closing a GtkFileChooserDialog
- From: The Saltydog <thesaltydog gmail com>
- To: gtk-app-devel-list gnome org
- Subject: closing a GtkFileChooserDialog
- Date: Sat, 9 Jul 2005 18:51:52 +0200
I have an annoying problem...
Open a GtkFileChooserDialog, select the file, click "Open"... then
execute a time-demanding subroutine. The dialog doesn't close until
the subroutine exists.
This is a snap of the code:
******************************************************
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
{
char *filename;
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
my_subroutine(filename)
g_free (filename);
gtk_widget_destroy (dialog);
}
gtk_widget_destroy (dialog);
***********************************************************
the dialog stays open until my_subroutine returns and as the sub is a
very long time-demanding sub, it is annoying to see the dialog stuck
opened..
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]