aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/dlg_utils.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-06-03 21:17:06 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-06-03 21:17:06 +0000
commit2721179bf69a40eaa7dc7b2e9868d6fa7f34b18c (patch)
tree9eb3fa7f8f469dab0842f29b21c738fa2f9b2d6f /gtk/dlg_utils.c
parent94b5e0c44c6c88533e06ab7e92523e4a4486d016 (diff)
"gtk_file_selection_set_filename()" doesn't work with a GtkFileChooser,
and "gtk_file_chooser_set_filename()" requires an absolute path, so "" isn't valid. Get rid of the "gtk_file_selection_set_filename()" call in "file_selection_new()". Put in a comment asking why we're using "gtk_file_selection_set_filename()" at all. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11095 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/dlg_utils.c')
-rw-r--r--gtk/dlg_utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/dlg_utils.c b/gtk/dlg_utils.c
index 87929d17f1..b03490f5f9 100644
--- a/gtk/dlg_utils.c
+++ b/gtk/dlg_utils.c
@@ -1,7 +1,7 @@
/* dlg_utils.c
* Utilities to use when constructing dialogs
*
- * $Id: dlg_utils.c,v 1.37 2004/06/01 17:33:35 ulfl Exp $
+ * $Id: dlg_utils.c,v 1.38 2004/06/03 21:17:06 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -383,8 +383,6 @@ file_selection_new(const gchar *title, file_selection_action_t action)
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
NULL);
- gtk_file_selection_set_filename(GTK_FILE_SELECTION(win), "");
-
/* If we've opened a file before, start out by showing the files in the directory
in which that file resided. */
if (last_open_dir)
@@ -404,6 +402,9 @@ file_selection_new(const gchar *title, file_selection_action_t action _U_)
#endif
gtk_window_set_transient_for(GTK_WINDOW(win), GTK_WINDOW(top_level));
+ /* XXX - why are we doing this? We don't do it with the GtkFileChooser,
+ as it complains that the file name isn't being set to an absolute
+ path; does this provoke a similar complaint? */
gtk_file_selection_set_filename(GTK_FILE_SELECTION(win), "");
/* If we've opened a file before, start out by showing the files in the directory