diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-05-22 15:46:27 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-05-22 15:46:27 +0000 |
commit | a5cee04fad8ca23a2f3a3ac5b5233ca6b01fe71e (patch) | |
tree | 65a7d5c702bf3392494b33ddd7ed43c94e491670 /gtk/text_page_utils.c | |
parent | da2f447a9bda3a05dd8e61b1c1f5dea4b5912f6b (diff) |
Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on
wiretap on Windows.
While doing that, rename the eth_* functions to ws_*.
svn path=/trunk/; revision=25354
Diffstat (limited to 'gtk/text_page_utils.c')
-rw-r--r-- | gtk/text_page_utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/text_page_utils.c b/gtk/text_page_utils.c index f691cb0b01..3afd44478d 100644 --- a/gtk/text_page_utils.c +++ b/gtk/text_page_utils.c @@ -36,7 +36,7 @@ #include "epan/filesystem.h" #include "../simple_dialog.h" -#include "wiretap/file_util.h" +#include <wsutil/file_util.h> #include "gtk/text_page_utils.h" #include "gtk/gui_utils.h" @@ -59,7 +59,7 @@ GtkWidget * text_page_new(const char *absolute_path) page_vb = gtk_vbox_new(FALSE, 0); gtk_container_border_width(GTK_CONTAINER(page_vb), 1); txt_scrollw = scrolled_window_new(NULL, NULL); - gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(txt_scrollw), + gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(txt_scrollw), GTK_SHADOW_IN); gtk_box_pack_start(GTK_BOX(page_vb), txt_scrollw, TRUE, TRUE, 0); @@ -113,7 +113,7 @@ static void text_page_set_text(GtkWidget *page, const char *absolute_path) FILE *text_file; char line[4096+1]; /* XXX - size? */ - text_file = eth_fopen(absolute_path, "r"); + text_file = ws_fopen(absolute_path, "r"); if (text_file != NULL) { while (fgets(line, sizeof line, text_file) != NULL) { text_page_insert(page, line, strlen(line)); |