aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-04-29 13:12:54 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-04-29 13:12:54 +0000
commit1dc3659de4875910f1e4da897bce186e9e5cd70a (patch)
tree525d32540ca607a0e3f277430625061524dcde09 /gtk
parentdd9f8286ccebfe57b9bbaed6679d21389d418064 (diff)
From Michael Speck via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4726 :
If "Help -> About Wireshark" is selected from Wireshark's main menu an error message pops up: Could not open file "<DevelopmentPath>\Wireshark_Source\wireshark-gtk2\COPYING": No such file or directory The attached patch handles this situation by looking for COPYING.txt instead of COPYING on windows systems. svn path=/trunk/; revision=32596
Diffstat (limited to 'gtk')
-rw-r--r--gtk/about_dlg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/about_dlg.c b/gtk/about_dlg.c
index 69d31b5bf1..a4dbc66479 100644
--- a/gtk/about_dlg.c
+++ b/gtk/about_dlg.c
@@ -475,7 +475,11 @@ about_license_page_new(void)
GtkWidget *page;
char *absolute_path;
+#if defined(_WIN32)
+ absolute_path = get_datafile_path("COPYING.txt");
+#else
absolute_path = get_datafile_path("COPYING");
+#endif
page = text_page_new(absolute_path);
return page;