SHA256
1
0
forked from pool/wireshark
wireshark/wireshark-0.99.5-help.patch

38 lines
1.0 KiB
Diff
Raw Normal View History

--- gtk/help_dlg.c
+++ gtk/help_dlg.c
@@ -54,7 +54,7 @@
#endif
-#define HELP_DIR "help"
+#define HELP_DIR "/usr/share/wireshark/help"
#define NOTEBOOK_KEY "notebook_key"
@@ -88,10 +88,8 @@
char *relative_path, *absolute_path;
help_page_t *page;
- relative_path = g_strconcat(HELP_DIR, G_DIR_SEPARATOR_S, filename, NULL);
- absolute_path = get_datafile_path(relative_path);
+ absolute_path = g_strconcat(HELP_DIR, G_DIR_SEPARATOR_S, filename, NULL);
text_page = text_page_new(absolute_path);
- g_free(relative_path);
gtk_widget_show(text_page);
page = g_malloc(sizeof (help_page_t));
@@ -123,12 +121,11 @@
return;
}
- help_toc_file_path = get_datafile_path(HELP_DIR G_DIR_SEPARATOR_S "toc");
+ help_toc_file_path = HELP_DIR G_DIR_SEPARATOR_S "toc";
help_toc_file = eth_fopen(help_toc_file_path, "r");
if (help_toc_file == NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Could not open file \"%s\": %s",
help_toc_file_path, strerror(errno));
- g_free(help_toc_file_path);
return;
}