diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-11-10 12:05:25 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-11-10 12:05:25 +0000 |
commit | 0dbfde8b6de9977bda3094940dc8b11302f75a47 (patch) | |
tree | f3febdc4d98050c226ef2a682e8534319f36d1fb /gtk/drag_and_drop.c | |
parent | 88afdd95256a3b0a6cf755475e8ac32c8a0f87a8 (diff) |
Removed some unused variables and unused assignments.
svn path=/trunk/; revision=30918
Diffstat (limited to 'gtk/drag_and_drop.c')
-rw-r--r-- | gtk/drag_and_drop.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/drag_and_drop.c b/gtk/drag_and_drop.c index f5bd0db1ee..c0ca337f19 100644 --- a/gtk/drag_and_drop.c +++ b/gtk/drag_and_drop.c @@ -206,7 +206,6 @@ dnd_open_file_cmd(gchar *cf_names_freeme) int err; gchar *cf_name; int in_files; - gpointer dialog; GString *dialog_text; int files_work; char **in_filenames; @@ -270,7 +269,7 @@ dnd_open_file_cmd(gchar *cf_names_freeme) g_string_append(dialog_text, "\n"); } g_string_append(dialog_text, "\nThe packets in these files will be merged chronologically into a new temporary file."); - dialog = simple_dialog(ESD_TYPE_CONFIRMATION, + simple_dialog(ESD_TYPE_CONFIRMATION, ESD_BTN_OK, "%s", dialog_text->str); g_string_free(dialog_text, TRUE); @@ -322,7 +321,7 @@ GtkSelectionData *selection_data, guint info, guint t _U_, gpointer data _U_) #ifdef HAVE_LIBPCAP /* if a capture is running, do nothing but warn the user */ if((global_capture_opts.state != CAPTURE_STOPPED)) { - dialog = simple_dialog(ESD_TYPE_CONFIRMATION, + simple_dialog(ESD_TYPE_CONFIRMATION, ESD_BTN_OK, "%sDrag and Drop currently not possible!%s\n\n" "Dropping a file isn't possible while a capture is in progress.", @@ -333,7 +332,7 @@ GtkSelectionData *selection_data, guint info, guint t _U_, gpointer data _U_) /* if another file read is still in progress, do nothing but warn the user */ if((cfile.state == FILE_READ_IN_PROGRESS)) { - dialog = simple_dialog(ESD_TYPE_CONFIRMATION, + simple_dialog(ESD_TYPE_CONFIRMATION, ESD_BTN_OK, "%sDrag and Drop currently not possible!%s\n\n" "Dropping a file isn't possible while loading another capture file.", |