summaryrefslogtreecommitdiff
path: root/ui/gtk/capture_file_dlg.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-04 10:27:59 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-04 10:27:59 +0000
commitafa17a95b0f8abd263c50d5a268a83cc6ede7673 (patch)
tree96b6ef1097232833d3fb842eac490c1d02b0a1f6 /ui/gtk/capture_file_dlg.h
parentf275aeadd9963378921eeaa1c15065ceab86a263 (diff)
downloadwireshark-afa17a95b0f8abd263c50d5a268a83cc6ede7673.tar.gz
Make the "Export Selected Packets As..." code path more like the "Save
As..." code path. Extract the code for the "do you want to overwrite this file" and "OK, you do - are you aware it's {user-immutable, read-only}?" code paths into a common routine for use by both of those and, potentially, other save/export/etc. code paths in the future. For "Save As", allow us to save atop the current capture file, as that's just what "Save" does if there are unsaved changes, and "safe save" makes that work. *Don't* allow that for "Export Selected Packets As...", however. The file chooser is run as a modal dialog, so we don't need to worry about creating more than one of them or about the number of marked packets etc. being changed out from under us. Get rid of a bunch of static variables. svn path=/trunk/; revision=43060
Diffstat (limited to 'ui/gtk/capture_file_dlg.h')
-rw-r--r--ui/gtk/capture_file_dlg.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/ui/gtk/capture_file_dlg.h b/ui/gtk/capture_file_dlg.h
index b0efd82819..56eda5377d 100644
--- a/ui/gtk/capture_file_dlg.h
+++ b/ui/gtk/capture_file_dlg.h
@@ -43,14 +43,6 @@
*/
gboolean do_file_close(capture_file *cf, gboolean from_quit, const char *before_what);
-/** Destroy the "Save As" dialog.
- */
-void file_save_as_destroy(void);
-
-/** Destroy the "Export Specified Packets" dialog.
- */
-void file_export_specified_packets_destroy(void);
-
/** User requested the "Open" dialog box.
*
* @param widget parent widget
@@ -93,14 +85,6 @@ void file_close_cmd_cb(GtkWidget *widget, gpointer data);
*/
void file_export_specified_packets_cmd_cb(GtkWidget *widget, gpointer data);
-/*
- * Set the "Save only marked packets" toggle button as appropriate for
- * the current output file type and count of marked packets.
- * Called when the "Export Specified Packets..." dialog box is created
- * and when either the file type or the marked count changes.
- */
-void file_export_specified_packets_update_dynamics(void);
-
/** User requested "Reload".
*
* @param widget parent widget