diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-19 08:11:30 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-19 08:11:30 +0000 |
commit | 85e4574258e93b66f780fef300153edc8a0f59cf (patch) | |
tree | 88e096f80a178b6fc806d7befb3c1a2f58ae5dae | |
parent | 98c0e827d033afb5854b6a1fac9ebd1ff9bb1980 (diff) |
The file dialog run by file_selection_browse() is modal, so there will
only be one instance per "Browse" button up at a time - no need to check
for one already being open.
svn path=/trunk/; revision=43349
-rw-r--r-- | ui/gtk/file_dlg.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ui/gtk/file_dlg.c b/ui/gtk/file_dlg.c index db0a1012e7..9b7142a2c5 100644 --- a/ui/gtk/file_dlg.c +++ b/ui/gtk/file_dlg.c @@ -316,15 +316,6 @@ file_selection_browse(GtkWidget *file_bt, GtkWidget *file_te, const char *label, GtkWidget *fs; gchar *f_name; - /* Has a file selection dialog box already been opened for that top-level - widget? */ - fs = g_object_get_data(G_OBJECT(caller), E_FILE_SEL_DIALOG_PTR_KEY); - if (fs != NULL) { - /* Yes. Just re-activate that dialog box. */ - reactivate_window(fs); - return; - } - fs = file_selection_new(label, action); g_object_set_data(G_OBJECT(fs), PRINT_FILE_TE_KEY, file_te); |