diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2005-05-12 06:51:20 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2005-05-12 06:51:20 +0000 |
commit | d2880d27ba349d3d822fbea513cea91e6c7c0c2e (patch) | |
tree | 97c6f702c539401c71a7f7cc89477e689159a5a7 /chinese | |
parent | Update to version 2.08. (diff) |
Upgrade to 0.9.5.
PR: ports/80923
Submitted by: chinsan <chinsan@mail2000.com.tw>
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=135110
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/gcin-devel/Makefile | 11 | ||||
-rw-r--r-- | chinese/gcin-devel/distinfo | 4 | ||||
-rw-r--r-- | chinese/gcin-devel/files/extra-patch-gcin-setup-pho.c | 46 | ||||
-rw-r--r-- | chinese/gcin-devel/files/extra-patch-tsin.c | 11 | ||||
-rw-r--r-- | chinese/gcin-devel/files/patch-about.c | 6 | ||||
-rw-r--r-- | chinese/gcin-devel/files/patch-gcin-im-client.c | 11 | ||||
-rw-r--r-- | chinese/gcin-devel/files/patch-gcin-setup.c | 39 | ||||
-rw-r--r-- | chinese/gcin-devel/files/patch-im-srv.c | 15 | ||||
-rw-r--r-- | chinese/gcin-devel/pkg-plist | 4 | ||||
-rw-r--r-- | chinese/gcin/Makefile | 11 | ||||
-rw-r--r-- | chinese/gcin/distinfo | 4 | ||||
-rw-r--r-- | chinese/gcin/files/extra-patch-gcin-setup-pho.c | 46 | ||||
-rw-r--r-- | chinese/gcin/files/extra-patch-tsin.c | 11 | ||||
-rw-r--r-- | chinese/gcin/files/patch-about.c | 6 | ||||
-rw-r--r-- | chinese/gcin/files/patch-gcin-im-client.c | 11 | ||||
-rw-r--r-- | chinese/gcin/files/patch-gcin-setup.c | 39 | ||||
-rw-r--r-- | chinese/gcin/files/patch-im-srv.c | 15 | ||||
-rw-r--r-- | chinese/gcin/pkg-plist | 4 |
18 files changed, 224 insertions, 70 deletions
diff --git a/chinese/gcin-devel/Makefile b/chinese/gcin-devel/Makefile index 636297a7a129..82d8e0be94d4 100644 --- a/chinese/gcin-devel/Makefile +++ b/chinese/gcin-devel/Makefile @@ -6,7 +6,7 @@ # PORTNAME= gcin -PORTVERSION= 0.9.3 +PORTVERSION= 0.9.5 CATEGORIES= chinese MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/ @@ -26,9 +26,14 @@ USE_GCC= 3.4 .endif post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in Changelog README + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + @gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules @${CAT} ${PKGMESSAGE} - @${ECHO} @${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\' - @${ECHO} .include <bsd.port.post.mk> diff --git a/chinese/gcin-devel/distinfo b/chinese/gcin-devel/distinfo index 1417cd11f02e..0906a74231c9 100644 --- a/chinese/gcin-devel/distinfo +++ b/chinese/gcin-devel/distinfo @@ -1,2 +1,2 @@ -MD5 (gcin-0.9.3.tar.bz2) = 6fc8be96ee415af8496fb4e4e5cfbaa0 -SIZE (gcin-0.9.3.tar.bz2) = 1168314 +MD5 (gcin-0.9.5.tar.bz2) = b3d5be7313894957fc49b0593197e553 +SIZE (gcin-0.9.5.tar.bz2) = 1166960 diff --git a/chinese/gcin-devel/files/extra-patch-gcin-setup-pho.c b/chinese/gcin-devel/files/extra-patch-gcin-setup-pho.c new file mode 100644 index 000000000000..6afe67d71f5e --- /dev/null +++ b/chinese/gcin-devel/files/extra-patch-gcin-setup-pho.c @@ -0,0 +1,46 @@ +--- gcin-setup-pho.c.orig Thu May 12 09:56:35 2005 ++++ gcin-setup-pho.c Thu May 12 10:28:40 2005 +@@ -42,8 +42,8 @@ + {"??????", TSIN_SPACE_OPT_SELECT_CHAR}, + {"???編輯??????", TSIN_SPACE_OPT_FLUSH_BUFFER}, + }; +-int tsin_space_optionsN = sizeof(tsin_space_options) / sizeof(tsin_space_options[0]); + ++int tsin_space_optionsN = sizeof(tsin_space_options) / sizeof(tsin_space_options[0]); + + static int kbm_selN = sizeof(kbm_sel) / sizeof(kbm_sel[0]); + +@@ -245,6 +245,16 @@ + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); + } + ++ GtkWidget *frame_phonetic_char_dynamic_sequence = gtk_frame_new("注??????? ??"); ++ gtk_box_pack_start (GTK_BOX (vbox_top), frame_phonetic_char_dynamic_sequence , TRUE, TRUE, 0); ++ gtk_container_set_border_width (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), 3); ++ check_button_phonetic_char_dynamic_sequence = gtk_check_button_new (); ++ gtk_container_add (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), ++ check_button_phonetic_char_dynamic_sequence); ++ gtk_toggle_button_set_active( ++ GTK_TOGGLE_BUTTON(check_button_phonetic_char_dynamic_sequence), ++ phonetic_char_dynamic_sequence); ++ + GtkWidget *frame_tsin_sw = gtk_frame_new("??輸?[?/?]???"); + gtk_box_pack_start (GTK_BOX (vbox_top), frame_tsin_sw, TRUE, TRUE, 0); + gtk_container_set_border_width (GTK_CONTAINER (frame_tsin_sw), 3); +@@ -306,16 +316,6 @@ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_button_phrase_pre_select), + tsin_phrase_pre_select); + +- +- GtkWidget *frame_phonetic_char_dynamic_sequence = gtk_frame_new("注??????? ??"); +- gtk_box_pack_start (GTK_BOX (vbox_top), frame_phonetic_char_dynamic_sequence , TRUE, TRUE, 0); +- gtk_container_set_border_width (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), 3); +- check_button_phonetic_char_dynamic_sequence = gtk_check_button_new (); +- gtk_container_add (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), +- check_button_phonetic_char_dynamic_sequence); +- gtk_toggle_button_set_active( +- GTK_TOGGLE_BUTTON(check_button_phonetic_char_dynamic_sequence), +- phonetic_char_dynamic_sequence); + + GtkWidget *frame_tsin_disp_status_row = gtk_frame_new("??顯示?????(????)"); + gtk_box_pack_start (GTK_BOX (vbox_top), frame_tsin_disp_status_row , TRUE, TRUE, 0); diff --git a/chinese/gcin-devel/files/extra-patch-tsin.c b/chinese/gcin-devel/files/extra-patch-tsin.c new file mode 100644 index 000000000000..01a7aa6e31aa --- /dev/null +++ b/chinese/gcin-devel/files/extra-patch-tsin.c @@ -0,0 +1,11 @@ +--- tsin.c.orig Thu May 12 04:08:09 2005 ++++ tsin.c Thu May 12 04:08:45 2005 +@@ -1107,7 +1107,7 @@ + static gboolean pre_punctuation(KeySym xkey) + { + static char shift_punc[]="<>?:\"{}!"; +- static char chars[]="???????????"; ++ static char chars[]="???????????"; + + char *p; + diff --git a/chinese/gcin-devel/files/patch-about.c b/chinese/gcin-devel/files/patch-about.c index 58f0d3e366ae..132e8ab2b31f 100644 --- a/chinese/gcin-devel/files/patch-about.c +++ b/chinese/gcin-devel/files/patch-about.c @@ -1,5 +1,5 @@ ---- about.c.orig Thu May 5 11:32:39 2005 -+++ about.c Thu May 5 11:41:34 2005 +--- about.c.orig Sat Feb 26 21:42:00 2005 ++++ about.c Thu May 12 04:02:17 2005 @@ -69,10 +69,16 @@ gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 3); @@ -10,7 +10,7 @@ - GtkWidget *label_sf = gtk_label_new ("http://www.csie.nctu.edu.tw/~cp76/gcin"); + GtkWidget *label_sf = gtk_label_new ("gcin WWW:\nhttp://www.csie.nctu.edu.tw/~cp76/gcin"); + gtk_misc_set_alignment (GTK_MISC (label_sf), 0, 0); -+ GtkWidget *label_FreeBSD = gtk_label_new ("FeeeBack:\nhttp://cle.linux.org.tw/gcin/"); ++ GtkWidget *label_FreeBSD = gtk_label_new ("Feedback:\nhttp://cle.linux.org.tw/gcin/"); + gtk_misc_set_alignment (GTK_MISC (label_FreeBSD), 0, 0); gtk_box_pack_start(GTK_BOX(vbox), label_sf, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox), vseparator, FALSE, FALSE, 3); diff --git a/chinese/gcin-devel/files/patch-gcin-im-client.c b/chinese/gcin-devel/files/patch-gcin-im-client.c deleted file mode 100644 index 8cb77de518d7..000000000000 --- a/chinese/gcin-devel/files/patch-gcin-im-client.c +++ /dev/null @@ -1,11 +0,0 @@ ---- im-client/gcin-im-client.c.orig Fri Mar 25 16:52:27 2005 -+++ im-client/gcin-im-client.c Sat Apr 23 21:43:56 2005 -@@ -71,7 +71,7 @@ - #if FREEBSD - setgrp(); - #else -- setpgrp(); -+ setpgrp(0, getpid()); - #endif - execl(execbin, "gcin", NULL); - } else { diff --git a/chinese/gcin-devel/files/patch-gcin-setup.c b/chinese/gcin-devel/files/patch-gcin-setup.c new file mode 100644 index 000000000000..06835c13f9db --- /dev/null +++ b/chinese/gcin-devel/files/patch-gcin-setup.c @@ -0,0 +1,39 @@ +--- gcin-setup.c.orig Thu May 12 14:38:04 2005 ++++ gcin-setup.c Thu May 12 14:39:09 2005 +@@ -609,22 +609,21 @@ + GtkWidget *vbox = gtk_vbox_new (FALSE, 0); + gtk_container_add (GTK_CONTAINER (main_window), vbox); + +- GtkWidget *button_kbm = gtk_button_new_with_label("gcin 注音/詞音設定"); +- gtk_box_pack_start (GTK_BOX (vbox), button_kbm, TRUE, TRUE, 0); +- g_signal_connect (G_OBJECT (button_kbm), "clicked", +- G_CALLBACK (cb_kbm), NULL); +- + GtkWidget *button_appearance_conf = gtk_button_new_with_label("外觀設定"); + gtk_box_pack_start (GTK_BOX (vbox), button_appearance_conf, TRUE, TRUE, 0); + g_signal_connect (G_OBJECT (button_appearance_conf), "clicked", + G_CALLBACK (cb_appearance_conf), NULL); + ++ GtkWidget *button_kbm = gtk_button_new_with_label("gcin 注音/詞音設定"); ++ gtk_box_pack_start (GTK_BOX (vbox), button_kbm, TRUE, TRUE, 0); ++ g_signal_connect (G_OBJECT (button_kbm), "clicked", ++ G_CALLBACK (cb_kbm), NULL); ++ + GtkWidget *button_gtab_conf = gtk_button_new_with_label("倉頡/行列/嘸蝦米/大易設定"); + gtk_box_pack_start (GTK_BOX (vbox), button_gtab_conf, TRUE, TRUE, 0); + g_signal_connect (G_OBJECT (button_gtab_conf), "clicked", + G_CALLBACK (cb_gtab_conf), NULL); + +- + GtkWidget *button_default_input_method = gtk_button_new_with_label("內定輸入法 & 開啟/關閉"); + gtk_box_pack_start (GTK_BOX (vbox), button_default_input_method, TRUE, TRUE, 0); + g_signal_connect (G_OBJECT (button_default_input_method), "clicked", +@@ -655,7 +654,7 @@ + g_signal_connect (G_OBJECT (button_ts_import_sys), "clicked", + G_CALLBACK (cb_ts_import_sys), NULL); + +- GtkWidget *button_alt_shift = gtk_button_new_with_label("alt-shift 片語編輯"); ++ GtkWidget *button_alt_shift = gtk_button_new_with_label("Alt-Shift 片語編輯"); + gtk_box_pack_start (GTK_BOX (vbox), button_alt_shift, TRUE, TRUE, 0); + g_signal_connect (G_OBJECT (button_alt_shift), "clicked", + G_CALLBACK (cb_alt_shift), NULL); diff --git a/chinese/gcin-devel/files/patch-im-srv.c b/chinese/gcin-devel/files/patch-im-srv.c deleted file mode 100644 index b5671f227660..000000000000 --- a/chinese/gcin-devel/files/patch-im-srv.c +++ /dev/null @@ -1,15 +0,0 @@ ---- im-srv/im-srv.c.orig Thu Apr 7 09:11:24 2005 -+++ im-srv/im-srv.c Thu Apr 7 09:11:01 2005 -@@ -121,7 +121,12 @@ - char sock_path[128]; - get_gcin_im_srv_sock_path(sock_path, sizeof(sock_path)); - strcpy(serv_addr.sun_path, sock_path); -+ -+#ifdef SUN_LEN -+ servlen = SUN_LEN (&serv_addr); -+#else - servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family); -+#endif - - dbg("-- %s\n",serv_addr.sun_path); - struct stat st; diff --git a/chinese/gcin-devel/pkg-plist b/chinese/gcin-devel/pkg-plist index 3a24c61c9744..34cf1dad6341 100644 --- a/chinese/gcin-devel/pkg-plist +++ b/chinese/gcin-devel/pkg-plist @@ -35,8 +35,8 @@ lib/libgcin-im-client.so %%DATADIR%%/table/tsin.idx %%DATADIR%%/table/zo.kbm %%DATADIR%%/table/zo-asdf.kbm -%%DOCSDIR%%/README %%DOCSDIR%%/Changelog +%%DOCSDIR%%/README share/applications/gcin.desktop share/applications/gcin-setup.desktop share/icons/gcin.png @@ -50,3 +50,5 @@ share/icons/gcin/pin-float16.png @unexec rmdir %D/%%DATADIR%%/script 2>/dev/null || true @unexec rmdir %D/%%DATADIR%% 2>/dev/null || true @unexec rmdir %D/lib/gtk-2.0/immodules 2>/dev/null || true +@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules +@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules diff --git a/chinese/gcin/Makefile b/chinese/gcin/Makefile index 636297a7a129..82d8e0be94d4 100644 --- a/chinese/gcin/Makefile +++ b/chinese/gcin/Makefile @@ -6,7 +6,7 @@ # PORTNAME= gcin -PORTVERSION= 0.9.3 +PORTVERSION= 0.9.5 CATEGORIES= chinese MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/ @@ -26,9 +26,14 @@ USE_GCC= 3.4 .endif post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in Changelog README + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + @gtk-query-immodules-2.0 > ${PREFIX}/etc/gtk-2.0/gtk.immodules @${CAT} ${PKGMESSAGE} - @${ECHO} @${ECHO} To display this message again, type \`pkg_info -D ${PKGNAME}\' - @${ECHO} .include <bsd.port.post.mk> diff --git a/chinese/gcin/distinfo b/chinese/gcin/distinfo index 1417cd11f02e..0906a74231c9 100644 --- a/chinese/gcin/distinfo +++ b/chinese/gcin/distinfo @@ -1,2 +1,2 @@ -MD5 (gcin-0.9.3.tar.bz2) = 6fc8be96ee415af8496fb4e4e5cfbaa0 -SIZE (gcin-0.9.3.tar.bz2) = 1168314 +MD5 (gcin-0.9.5.tar.bz2) = b3d5be7313894957fc49b0593197e553 +SIZE (gcin-0.9.5.tar.bz2) = 1166960 diff --git a/chinese/gcin/files/extra-patch-gcin-setup-pho.c b/chinese/gcin/files/extra-patch-gcin-setup-pho.c new file mode 100644 index 000000000000..6afe67d71f5e --- /dev/null +++ b/chinese/gcin/files/extra-patch-gcin-setup-pho.c @@ -0,0 +1,46 @@ +--- gcin-setup-pho.c.orig Thu May 12 09:56:35 2005 ++++ gcin-setup-pho.c Thu May 12 10:28:40 2005 +@@ -42,8 +42,8 @@ + {"??????", TSIN_SPACE_OPT_SELECT_CHAR}, + {"???編輯??????", TSIN_SPACE_OPT_FLUSH_BUFFER}, + }; +-int tsin_space_optionsN = sizeof(tsin_space_options) / sizeof(tsin_space_options[0]); + ++int tsin_space_optionsN = sizeof(tsin_space_options) / sizeof(tsin_space_options[0]); + + static int kbm_selN = sizeof(kbm_sel) / sizeof(kbm_sel[0]); + +@@ -245,6 +245,16 @@ + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); + } + ++ GtkWidget *frame_phonetic_char_dynamic_sequence = gtk_frame_new("注??????? ??"); ++ gtk_box_pack_start (GTK_BOX (vbox_top), frame_phonetic_char_dynamic_sequence , TRUE, TRUE, 0); ++ gtk_container_set_border_width (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), 3); ++ check_button_phonetic_char_dynamic_sequence = gtk_check_button_new (); ++ gtk_container_add (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), ++ check_button_phonetic_char_dynamic_sequence); ++ gtk_toggle_button_set_active( ++ GTK_TOGGLE_BUTTON(check_button_phonetic_char_dynamic_sequence), ++ phonetic_char_dynamic_sequence); ++ + GtkWidget *frame_tsin_sw = gtk_frame_new("??輸?[?/?]???"); + gtk_box_pack_start (GTK_BOX (vbox_top), frame_tsin_sw, TRUE, TRUE, 0); + gtk_container_set_border_width (GTK_CONTAINER (frame_tsin_sw), 3); +@@ -306,16 +316,6 @@ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_button_phrase_pre_select), + tsin_phrase_pre_select); + +- +- GtkWidget *frame_phonetic_char_dynamic_sequence = gtk_frame_new("注??????? ??"); +- gtk_box_pack_start (GTK_BOX (vbox_top), frame_phonetic_char_dynamic_sequence , TRUE, TRUE, 0); +- gtk_container_set_border_width (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), 3); +- check_button_phonetic_char_dynamic_sequence = gtk_check_button_new (); +- gtk_container_add (GTK_CONTAINER (frame_phonetic_char_dynamic_sequence), +- check_button_phonetic_char_dynamic_sequence); +- gtk_toggle_button_set_active( +- GTK_TOGGLE_BUTTON(check_button_phonetic_char_dynamic_sequence), +- phonetic_char_dynamic_sequence); + + GtkWidget *frame_tsin_disp_status_row = gtk_frame_new("??顯示?????(????)"); + gtk_box_pack_start (GTK_BOX (vbox_top), frame_tsin_disp_status_row , TRUE, TRUE, 0); diff --git a/chinese/gcin/files/extra-patch-tsin.c b/chinese/gcin/files/extra-patch-tsin.c new file mode 100644 index 000000000000..01a7aa6e31aa --- /dev/null +++ b/chinese/gcin/files/extra-patch-tsin.c @@ -0,0 +1,11 @@ +--- tsin.c.orig Thu May 12 04:08:09 2005 ++++ tsin.c Thu May 12 04:08:45 2005 +@@ -1107,7 +1107,7 @@ + static gboolean pre_punctuation(KeySym xkey) + { + static char shift_punc[]="<>?:\"{}!"; +- static char chars[]="???????????"; ++ static char chars[]="???????????"; + + char *p; + diff --git a/chinese/gcin/files/patch-about.c b/chinese/gcin/files/patch-about.c index 58f0d3e366ae..132e8ab2b31f 100644 --- a/chinese/gcin/files/patch-about.c +++ b/chinese/gcin/files/patch-about.c @@ -1,5 +1,5 @@ ---- about.c.orig Thu May 5 11:32:39 2005 -+++ about.c Thu May 5 11:41:34 2005 +--- about.c.orig Sat Feb 26 21:42:00 2005 ++++ about.c Thu May 12 04:02:17 2005 @@ -69,10 +69,16 @@ gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 3); @@ -10,7 +10,7 @@ - GtkWidget *label_sf = gtk_label_new ("http://www.csie.nctu.edu.tw/~cp76/gcin"); + GtkWidget *label_sf = gtk_label_new ("gcin WWW:\nhttp://www.csie.nctu.edu.tw/~cp76/gcin"); + gtk_misc_set_alignment (GTK_MISC (label_sf), 0, 0); -+ GtkWidget *label_FreeBSD = gtk_label_new ("FeeeBack:\nhttp://cle.linux.org.tw/gcin/"); ++ GtkWidget *label_FreeBSD = gtk_label_new ("Feedback:\nhttp://cle.linux.org.tw/gcin/"); + gtk_misc_set_alignment (GTK_MISC (label_FreeBSD), 0, 0); gtk_box_pack_start(GTK_BOX(vbox), label_sf, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(vbox), vseparator, FALSE, FALSE, 3); diff --git a/chinese/gcin/files/patch-gcin-im-client.c b/chinese/gcin/files/patch-gcin-im-client.c deleted file mode 100644 index 8cb77de518d7..000000000000 --- a/chinese/gcin/files/patch-gcin-im-client.c +++ /dev/null @@ -1,11 +0,0 @@ ---- im-client/gcin-im-client.c.orig Fri Mar 25 16:52:27 2005 -+++ im-client/gcin-im-client.c Sat Apr 23 21:43:56 2005 -@@ -71,7 +71,7 @@ - #if FREEBSD - setgrp(); - #else -- setpgrp(); -+ setpgrp(0, getpid()); - #endif - execl(execbin, "gcin", NULL); - } else { diff --git a/chinese/gcin/files/patch-gcin-setup.c b/chinese/gcin/files/patch-gcin-setup.c new file mode 100644 index 000000000000..06835c13f9db --- /dev/null +++ b/chinese/gcin/files/patch-gcin-setup.c @@ -0,0 +1,39 @@ +--- gcin-setup.c.orig Thu May 12 14:38:04 2005 ++++ gcin-setup.c Thu May 12 14:39:09 2005 +@@ -609,22 +609,21 @@ + GtkWidget *vbox = gtk_vbox_new (FALSE, 0); + gtk_container_add (GTK_CONTAINER (main_window), vbox); + +- GtkWidget *button_kbm = gtk_button_new_with_label("gcin 注音/詞音設定"); +- gtk_box_pack_start (GTK_BOX (vbox), button_kbm, TRUE, TRUE, 0); +- g_signal_connect (G_OBJECT (button_kbm), "clicked", +- G_CALLBACK (cb_kbm), NULL); +- + GtkWidget *button_appearance_conf = gtk_button_new_with_label("外觀設定"); + gtk_box_pack_start (GTK_BOX (vbox), button_appearance_conf, TRUE, TRUE, 0); + g_signal_connect (G_OBJECT (button_appearance_conf), "clicked", + G_CALLBACK (cb_appearance_conf), NULL); + ++ GtkWidget *button_kbm = gtk_button_new_with_label("gcin 注音/詞音設定"); ++ gtk_box_pack_start (GTK_BOX (vbox), button_kbm, TRUE, TRUE, 0); ++ g_signal_connect (G_OBJECT (button_kbm), "clicked", ++ G_CALLBACK (cb_kbm), NULL); ++ + GtkWidget *button_gtab_conf = gtk_button_new_with_label("倉頡/行列/嘸蝦米/大易設定"); + gtk_box_pack_start (GTK_BOX (vbox), button_gtab_conf, TRUE, TRUE, 0); + g_signal_connect (G_OBJECT (button_gtab_conf), "clicked", + G_CALLBACK (cb_gtab_conf), NULL); + +- + GtkWidget *button_default_input_method = gtk_button_new_with_label("內定輸入法 & 開啟/關閉"); + gtk_box_pack_start (GTK_BOX (vbox), button_default_input_method, TRUE, TRUE, 0); + g_signal_connect (G_OBJECT (button_default_input_method), "clicked", +@@ -655,7 +654,7 @@ + g_signal_connect (G_OBJECT (button_ts_import_sys), "clicked", + G_CALLBACK (cb_ts_import_sys), NULL); + +- GtkWidget *button_alt_shift = gtk_button_new_with_label("alt-shift 片語編輯"); ++ GtkWidget *button_alt_shift = gtk_button_new_with_label("Alt-Shift 片語編輯"); + gtk_box_pack_start (GTK_BOX (vbox), button_alt_shift, TRUE, TRUE, 0); + g_signal_connect (G_OBJECT (button_alt_shift), "clicked", + G_CALLBACK (cb_alt_shift), NULL); diff --git a/chinese/gcin/files/patch-im-srv.c b/chinese/gcin/files/patch-im-srv.c deleted file mode 100644 index b5671f227660..000000000000 --- a/chinese/gcin/files/patch-im-srv.c +++ /dev/null @@ -1,15 +0,0 @@ ---- im-srv/im-srv.c.orig Thu Apr 7 09:11:24 2005 -+++ im-srv/im-srv.c Thu Apr 7 09:11:01 2005 -@@ -121,7 +121,12 @@ - char sock_path[128]; - get_gcin_im_srv_sock_path(sock_path, sizeof(sock_path)); - strcpy(serv_addr.sun_path, sock_path); -+ -+#ifdef SUN_LEN -+ servlen = SUN_LEN (&serv_addr); -+#else - servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family); -+#endif - - dbg("-- %s\n",serv_addr.sun_path); - struct stat st; diff --git a/chinese/gcin/pkg-plist b/chinese/gcin/pkg-plist index 3a24c61c9744..34cf1dad6341 100644 --- a/chinese/gcin/pkg-plist +++ b/chinese/gcin/pkg-plist @@ -35,8 +35,8 @@ lib/libgcin-im-client.so %%DATADIR%%/table/tsin.idx %%DATADIR%%/table/zo.kbm %%DATADIR%%/table/zo-asdf.kbm -%%DOCSDIR%%/README %%DOCSDIR%%/Changelog +%%DOCSDIR%%/README share/applications/gcin.desktop share/applications/gcin-setup.desktop share/icons/gcin.png @@ -50,3 +50,5 @@ share/icons/gcin/pin-float16.png @unexec rmdir %D/%%DATADIR%%/script 2>/dev/null || true @unexec rmdir %D/%%DATADIR%% 2>/dev/null || true @unexec rmdir %D/lib/gtk-2.0/immodules 2>/dev/null || true +@exec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules +@unexec gtk-query-immodules-2.0 > %D/etc/gtk-2.0/gtk.immodules |