diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-04-25 22:34:06 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-04-25 22:34:06 +0000 |
commit | 0d74ec909c387239faa42ae6e594898b60d3ae79 (patch) | |
tree | 62d838f357be70eab838a73b2ae0e9ccf790cad2 /gtk | |
parent | 634c30dbd11433fa8965f8304db0cd7c01faaa74 (diff) |
removed some labels
svn path=/trunk/; revision=10705
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/print_dlg.c | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/gtk/print_dlg.c b/gtk/print_dlg.c index 1ec0844429..d7a99cd583 100644 --- a/gtk/print_dlg.c +++ b/gtk/print_dlg.c @@ -1,7 +1,7 @@ /* print_dlg.c * Dialog boxes for printing * - * $Id: print_dlg.c,v 1.75 2004/04/25 21:46:19 guy Exp $ + * $Id: print_dlg.c,v 1.76 2004/04/25 22:34:06 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -330,7 +330,7 @@ open_print_dialog(char *title, output_action_e action, print_args_t *args) GtkWidget *main_win; GtkWidget *main_vb; - GtkWidget *printer_fr, *printer_vb, *printer_lb; + GtkWidget *printer_fr, *printer_vb, *export_format_lb; GtkWidget *text_rb, *ps_rb, *pdml_rb, *psml_rb; GtkWidget *printer_tb, *dest_cb; #ifndef _WIN32 @@ -488,30 +488,10 @@ open_print_dialog(char *title, output_action_e action, print_args_t *args) SIGNAL_CONNECT(dest_cb, "toggled", print_cmd_toggle_dest, NULL); SIGNAL_CONNECT(file_bt, "clicked", select_file_cb, "Ethereal: Print to File"); - - switch(action) { - case(output_action_print): - printer_lb = NULL; - break; - case(output_action_export_text): - printer_lb = gtk_label_new("... export as ASCII plain text file."); - break; - case(output_action_export_ps): - printer_lb = gtk_label_new("... export as PostScript file (can be easily converted to a PDF file using ghostscript's ps2pdf)."); - break; - case(output_action_export_psml): - printer_lb = gtk_label_new("... export as Packet Summary Markup Language (XML) file."); - break; - case(output_action_export_pdml): - printer_lb = gtk_label_new("... export as Packet Details Markup Language (XML) file."); - break; - default: - g_assert_not_reached(); - printer_lb = NULL; /* squelch compiler complaint */ - } - if(printer_lb) { - gtk_box_pack_start(GTK_BOX(printer_vb), printer_lb, FALSE, FALSE, 0); - gtk_widget_show(printer_lb); + if(action == output_action_export_ps) { + export_format_lb = gtk_label_new("(PostScript files can be easily converted to PDF files using ghostscript's ps2pdf)"); + gtk_box_pack_start(GTK_BOX(printer_vb), export_format_lb, FALSE, FALSE, 0); + gtk_widget_show(export_format_lb); } /*****************************************************/ |