diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-05-14 21:53:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-05-14 21:53:57 +0000 |
commit | 89afc91ccfd137785840d9ced9ec1929e6a13a5b (patch) | |
tree | dc9b39f072b5df6440a12c570dbab907c46cc974 /ui/gtk/file_dlg.h | |
parent | 732380177904489e2d45d1b418080e0187b71d11 (diff) |
Give file_selection_new() an argument to specify the parent window of
the file selection dialog.
Call gtk_file_chooser_set_do_overwrite_confirmation() in
file_selection_new() for FILE_SELECTION_SAVE file selection dialogs,
rather than doing it in the individual callers of file_selection_new().
Use gtk_dialog_set_alternative_button_order() in file_selection_new() to
set the alternative button order, rather than using #ifdefs.
Use file_selection_new() and file_selection_run() in the graph analysis
code. (We should clean up other code that uses file_selection_new() to
use file_selection_run(), and clean up other code that uses
gtk_file_chooser_dialog_new() to use file_selection_new() and
file_selection_run().)
svn path=/trunk/; revision=49308
Diffstat (limited to 'ui/gtk/file_dlg.h')
-rw-r--r-- | ui/gtk/file_dlg.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/gtk/file_dlg.h b/ui/gtk/file_dlg.h index 0b217400cf..d2659d04b8 100644 --- a/ui/gtk/file_dlg.h +++ b/ui/gtk/file_dlg.h @@ -60,14 +60,16 @@ typedef enum { FILE_SELECTION_CREATE_FOLDER /**< browse for a dir. to save in */ } file_selection_action_t; -/** Create a file selection dialog box window that belongs to Wireshark's - * main window. See window_new() for usage. +/** Create a file selection dialog box window that belongs to a top-level + * window. See window_new() for usage. * * @param title the title for the new file selection dialog + * @param parent the top-level window * @param action the desired action * @return the newly created file selection dialog */ -extern GtkWidget *file_selection_new(const gchar *title, file_selection_action_t action); +extern GtkWidget *file_selection_new(const gchar *title, GtkWindow *parent, + file_selection_action_t action); /** Set the current folder for a file selection dialog. * |