1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Add a patch for I18N, and correct pkg/PLIST.

This commit is contained in:
Vanilla I. Shu 2000-04-22 21:19:39 +00:00
parent 201929fc55
commit 19caf44942
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=27894
6 changed files with 84 additions and 8 deletions

View File

@ -0,0 +1,25 @@
--- gtk/main.c.orig Wed Apr 5 10:17:53 2000
+++ gtk/main.c Sat Apr 22 20:33:00 2000
@@ -1161,6 +1161,7 @@
/* Let GTK get its args */
gtk_init (&argc, &argv);
+ gtk_set_locale ();
prefs = read_prefs(&pf_path);
if (pf_path != NULL) {
@@ -1440,12 +1441,12 @@
sprintf(rc_file, "%s/%s", get_home_dir(), RC_FILE);
gtk_rc_parse(rc_file);
- if ((m_r_font = gdk_font_load(medium_font)) == NULL) {
+ if ((m_r_font = gdk_fontset_load(medium_font)) == NULL) {
fprintf(stderr, "ethereal: Error font %s not found (use -m option)\n", medium_font);
exit(1);
}
- if ((m_b_font = gdk_font_load(bold_font)) == NULL) {
+ if ((m_b_font = gdk_fontset_load(bold_font)) == NULL) {
fprintf(stderr, "ethereal: Error font %s not found (use -b option)\n", bold_font);
exit(1);
}

View File

@ -0,0 +1,13 @@
--- gtk/main.h.orig Sat Apr 22 20:17:29 2000
+++ gtk/main.h Sat Apr 22 20:17:42 2000
@@ -38,8 +38,8 @@
#define MONO_MEDIUM_FONT "-*-lucida console-medium-*-*-*-*-100-*-*-*-*-*-*"
#define MONO_BOLD_FONT "-*-lucida console-bold-*-*-*-*-100-*-*-*-*-*-*"
#else
-#define MONO_MEDIUM_FONT "-*-lucidatypewriter-medium-r-normal-*-*-120-*-*-*-*-iso8859-1"
-#define MONO_BOLD_FONT "-*-lucidatypewriter-bold-r-normal-*-*-120-*-*-*-*-iso8859-1"
+#define MONO_MEDIUM_FONT "-*-lucidatypewriter-medium-r-normal-*-*-120-*-*-*-*-iso8859-1,*"
+#define MONO_BOLD_FONT "-*-lucidatypewriter-bold-r-normal-*-*-120-*-*-*-*-iso8859-1,*"
#endif
#define RC_FILE PF_DIR "/gtkrc"
#define DEF_WIDTH 750

View File

@ -2,9 +2,9 @@ bin/editcap
bin/ethereal
bin/tethereal
etc/manuf
lib/ethereal/plugins/0.8.5/gryphon.la
lib/ethereal/plugins/0.8.5/gryphon.a
lib/ethereal/plugins/0.8.5/gryphon.so
@dirrm lib/ethereal/plugins/0.8.5
lib/ethereal/plugins/0.8.7/gryphon.la
lib/ethereal/plugins/0.8.7/gryphon.a
lib/ethereal/plugins/0.8.7/gryphon.so
@dirrm lib/ethereal/plugins/0.8.7
@dirrm lib/ethereal/plugins
@dirrm lib/ethereal

View File

@ -0,0 +1,25 @@
--- gtk/main.c.orig Wed Apr 5 10:17:53 2000
+++ gtk/main.c Sat Apr 22 20:33:00 2000
@@ -1161,6 +1161,7 @@
/* Let GTK get its args */
gtk_init (&argc, &argv);
+ gtk_set_locale ();
prefs = read_prefs(&pf_path);
if (pf_path != NULL) {
@@ -1440,12 +1441,12 @@
sprintf(rc_file, "%s/%s", get_home_dir(), RC_FILE);
gtk_rc_parse(rc_file);
- if ((m_r_font = gdk_font_load(medium_font)) == NULL) {
+ if ((m_r_font = gdk_fontset_load(medium_font)) == NULL) {
fprintf(stderr, "ethereal: Error font %s not found (use -m option)\n", medium_font);
exit(1);
}
- if ((m_b_font = gdk_font_load(bold_font)) == NULL) {
+ if ((m_b_font = gdk_fontset_load(bold_font)) == NULL) {
fprintf(stderr, "ethereal: Error font %s not found (use -b option)\n", bold_font);
exit(1);
}

View File

@ -0,0 +1,13 @@
--- gtk/main.h.orig Sat Apr 22 20:17:29 2000
+++ gtk/main.h Sat Apr 22 20:17:42 2000
@@ -38,8 +38,8 @@
#define MONO_MEDIUM_FONT "-*-lucida console-medium-*-*-*-*-100-*-*-*-*-*-*"
#define MONO_BOLD_FONT "-*-lucida console-bold-*-*-*-*-100-*-*-*-*-*-*"
#else
-#define MONO_MEDIUM_FONT "-*-lucidatypewriter-medium-r-normal-*-*-120-*-*-*-*-iso8859-1"
-#define MONO_BOLD_FONT "-*-lucidatypewriter-bold-r-normal-*-*-120-*-*-*-*-iso8859-1"
+#define MONO_MEDIUM_FONT "-*-lucidatypewriter-medium-r-normal-*-*-120-*-*-*-*-iso8859-1,*"
+#define MONO_BOLD_FONT "-*-lucidatypewriter-bold-r-normal-*-*-120-*-*-*-*-iso8859-1,*"
#endif
#define RC_FILE PF_DIR "/gtkrc"
#define DEF_WIDTH 750

View File

@ -2,9 +2,9 @@ bin/editcap
bin/ethereal
bin/tethereal
etc/manuf
lib/ethereal/plugins/0.8.5/gryphon.la
lib/ethereal/plugins/0.8.5/gryphon.a
lib/ethereal/plugins/0.8.5/gryphon.so
@dirrm lib/ethereal/plugins/0.8.5
lib/ethereal/plugins/0.8.7/gryphon.la
lib/ethereal/plugins/0.8.7/gryphon.a
lib/ethereal/plugins/0.8.7/gryphon.so
@dirrm lib/ethereal/plugins/0.8.7
@dirrm lib/ethereal/plugins
@dirrm lib/ethereal