aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/capture_file_dlg.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-09-24 17:44:11 +0000
committerGerald Combs <gerald@wireshark.org>2012-09-24 17:44:11 +0000
commite9d4c115b552c2f37f6e21ed2d1ac4c025539b70 (patch)
treefe27bb146270a3317d5ef63cb47153b125fb9de7 /ui/gtk/capture_file_dlg.c
parent25eab1c383e4cebb578894802acd2c3085018611 (diff)
Fix compilation on Windows.
svn path=/trunk/; revision=45106
Diffstat (limited to 'ui/gtk/capture_file_dlg.c')
-rw-r--r--ui/gtk/capture_file_dlg.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/gtk/capture_file_dlg.c b/ui/gtk/capture_file_dlg.c
index 51f29e9635..955bcbb679 100644
--- a/ui/gtk/capture_file_dlg.c
+++ b/ui/gtk/capture_file_dlg.c
@@ -45,7 +45,6 @@
#include <wsutil/file_util.h>
#include "ui/alert_box.h"
-#include "ui/file_dialog.h"
#include "ui/recent.h"
#include "ui/simple_dialog.h"
#include "ui/ui_util.h"
@@ -1728,8 +1727,8 @@ file_save_as_cmd(capture_file *cf, gboolean must_support_comments,
*/
for (;;) {
#ifdef USE_WIN32_FILE_DIALOGS
- //if (win32_save_as_file(GDK_WINDOW_HWND(gtk_widget_get_window(top_level)), cf,
- // file_name, &file_type, &compressed, must_support_comments)) {
+ if (win32_save_as_file(GDK_WINDOW_HWND(gtk_widget_get_window(top_level)), cf,
+ file_name, &file_type, &compressed, must_support_comments)) {
/* They discarded comments, so redraw the packet details window
to reflect any packets that no longer have comments. */
packet_list_queue_draw();
@@ -1741,7 +1740,7 @@ file_save_as_cmd(capture_file *cf, gboolean must_support_comments,
support them? If not, ask the user whether they want to
discard the comments or choose a different format. */
#ifdef USE_WIN32_FILE_DIALOGS
- //switch (win32_check_save_as_with_comments(GDK_WINDOW_HWND(gtk_widget_get_window(top_level)), cf, file_type) {
+ switch (win32_check_save_as_with_comments(GDK_WINDOW_HWND(gtk_widget_get_window(top_level)), cf, file_type)) {
#else /* USE_WIN32_FILE_DIALOGS */
switch (gtk_check_save_as_with_comments(top_level, cf, file_type)) {
#endif /* USE_WIN32_FILE_DIALOGS */