diff options
author | keith <keith@FreeBSD.org> | 2001-03-06 15:19:39 +0800 |
---|---|---|
committer | keith <keith@FreeBSD.org> | 2001-03-06 15:19:39 +0800 |
commit | a674ed2265f0edbd48fd7f1646908d1c4f780570 (patch) | |
tree | 3860c0df2dc823851bba311e9c7bfc49a1443ade /chinese | |
parent | d5e6391f4e87fee002ceb367dba7f18f449d7489 (diff) | |
download | freebsd-ports-gnome-a674ed2265f0edbd48fd7f1646908d1c4f780570.tar.gz freebsd-ports-gnome-a674ed2265f0edbd48fd7f1646908d1c4f780570.tar.zst freebsd-ports-gnome-a674ed2265f0edbd48fd7f1646908d1c4f780570.zip |
Initial version. Gnumeric is a spreadsheet for GNOME.
This is a slightly modified version of japanese/gnumeric. It can
exchange simple spreadsheets with MS Excel.
TODO: Test CLE's patch, to see if a static gnomeole2 is needed to
avoid frequent crash when opening complicated .xls.
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/gnumeric/Makefile | 16 | ||||
-rw-r--r-- | chinese/gnumeric/files/patch-aa | 11 | ||||
-rw-r--r-- | chinese/gnumeric/files/patch-ab | 14 | ||||
-rw-r--r-- | chinese/gnumeric/files/patch-ac | 14 |
5 files changed, 56 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index 378890525eb0..48927f4a540f 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -27,6 +27,7 @@ SUBDIR += gb2ps SUBDIR += gbscript SUBDIR += ghostscript6 + SUBDIR += gnumeric SUBDIR += hc SUBDIR += hztty SUBDIR += joe diff --git a/chinese/gnumeric/Makefile b/chinese/gnumeric/Makefile new file mode 100644 index 000000000000..fe57b3f28de3 --- /dev/null +++ b/chinese/gnumeric/Makefile @@ -0,0 +1,16 @@ +# New ports collection makefile for: zh-gnumeric +# Date created: 6 March 2001 +# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org> +# +# $FreeBSD$ +# + +CATEGORIES= chinese math gnome + +MAINTAINER= keith@FreeBSD.org + +MASTERDIR= ${.CURDIR}/../../math/gnumeric + +EXTRA_PATCHES= ${.CURDIR}/files/patch-* + +.include "${MASTERDIR}/Makefile" diff --git a/chinese/gnumeric/files/patch-aa b/chinese/gnumeric/files/patch-aa new file mode 100644 index 000000000000..a385c0199fcb --- /dev/null +++ b/chinese/gnumeric/files/patch-aa @@ -0,0 +1,11 @@ +--- src/dialogs/dialog-stf-preview.c.orig Mon Oct 30 17:44:01 2000 ++++ src/dialogs/dialog-stf-preview.c Mon Oct 30 17:44:31 2000 +@@ -711,7 +711,7 @@ + renderdata->gridgroup = NULL; + renderdata->hashtable = g_hash_table_new (g_int_hash, g_int_equal); + +- renderdata->font = gdk_font_load ("fixed"); ++ renderdata->font = gdk_fontset_load ("-*-medium-r-normal--14-*-*-*-*-*-big5-0"); + renderdata->charwidth = gdk_string_width (renderdata->font, "W"); + renderdata->charheight = gdk_string_height (renderdata->font, "W"); + diff --git a/chinese/gnumeric/files/patch-ab b/chinese/gnumeric/files/patch-ab new file mode 100644 index 000000000000..8b0d40b5caec --- /dev/null +++ b/chinese/gnumeric/files/patch-ab @@ -0,0 +1,14 @@ +--- src/style.c.orig Tue Sep 19 09:41:02 2000 ++++ src/style.c Mon Oct 30 23:11:36 2000 +@@ -70,9 +70,9 @@ + } + + /* Worst case scenario */ +- font->gdk_font = gnome_display_font_get_gdk_font (font->dfont); ++ font->gdk_font = gdk_fontset_load ("-*-medium-r-normal--14-*-*-*-*-*-big5-0"); + if (font->gdk_font == NULL) +- font->gdk_font = gdk_font_load ("fixed"); ++ font->gdk_font = gdk_fontset_load ("-*-medium-r-normal--14-*-*-*-*-*-big5-0"); + else + gdk_font_ref (font->gdk_font); + diff --git a/chinese/gnumeric/files/patch-ac b/chinese/gnumeric/files/patch-ac new file mode 100644 index 000000000000..2e72eab92aff --- /dev/null +++ b/chinese/gnumeric/files/patch-ac @@ -0,0 +1,14 @@ +--- src/item-edit.c.orig Mon Oct 30 23:06:00 2000 ++++ src/item-edit.c Mon Oct 30 23:08:03 2000 +@@ -223,6 +223,11 @@ + return; + top_pos += item_edit->font->ascent; + ++ /* Handle multibyte */ ++ if( cursor_pos != -1 ) ++ cursor_pos = strlen(gtk_editable_get_chars(GTK_EDITABLE(item_edit->entry), ++ 0, cursor_pos)); ++ + /* Draw the background (recall that gdk_draw_rectangle excludes far coords) */ + gdk_draw_rectangle ( + drawable, canvas->style->white_gc, TRUE, |