summaryrefslogtreecommitdiff
path: root/textproc/ebview/patches
diff options
context:
space:
mode:
authorobache <obache>2007-12-12 08:34:16 +0000
committerobache <obache>2007-12-12 08:34:16 +0000
commita4259b441499445b15037721e4d052e6df1b9b61 (patch)
treebe9e1cde81e802696770488d06f127aea69d5385 /textproc/ebview/patches
parentafad7b7b24169f1c641e3edf68399c1fb52a3ea3 (diff)
downloadpkgsrc-a4259b441499445b15037721e4d052e6df1b9b61.tar.gz
Import ebview version 0.3.6.
Packaged by Yamashiro Jun and privided in PR 37452. EBView is a GTK+ based tool to access CD-ROM dictionaries of EPWING/EB/EBG/EBXA/EBXA-C formats.
Diffstat (limited to 'textproc/ebview/patches')
-rw-r--r--textproc/ebview/patches/patch-aa33
-rw-r--r--textproc/ebview/patches/patch-ab13
2 files changed, 46 insertions, 0 deletions
diff --git a/textproc/ebview/patches/patch-aa b/textproc/ebview/patches/patch-aa
new file mode 100644
index 00000000000..5712f0df660
--- /dev/null
+++ b/textproc/ebview/patches/patch-aa
@@ -0,0 +1,33 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/12/12 08:34:16 obache Exp $
+
+--- src/preference.c.orig 2005-10-05 09:41:23.000000000 +0900
++++ src/preference.c 2005-10-05 10:11:16.000000000 +0900
+@@ -400,7 +400,7 @@ void calculate_font_size(){
+ PangoFontDescription* desc;
+ PangoLanguage* lang;
+ PangoFontMap* fontmap;
+-#ifndef __WIN32__
++#if !GTK_CHECK_VERSION(2,8,0) && !defined(__WIN32__)
+ Display *display;
+ #endif
+ PangoContext *context;
+@@ -420,6 +420,9 @@ void calculate_font_size(){
+ desc = pango_font_description_from_string(fontset_normal);
+ lang = pango_language_from_string("ja");
+
++#if GTK_CHECK_VERSION(2,8,0)
++ fontmap = pango_cairo_font_map_get_default();
++#else
+ #ifdef __WIN32__
+ fontmap = pango_win32_font_map_for_display();
+ #else
+@@ -430,7 +433,8 @@ void calculate_font_size(){
+ }
+
+ fontmap = pango_x_font_map_for_display(display);
+-#endif
++#endif /* __WIN32__ */
++#endif /* GTK_CHECK_VERSION(2,8,0) */
+
+ if(fontmap == NULL){
+ LOG(LOG_INFO, "fontmap == NULL");
diff --git a/textproc/ebview/patches/patch-ab b/textproc/ebview/patches/patch-ab
new file mode 100644
index 00000000000..7008e616ecb
--- /dev/null
+++ b/textproc/ebview/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/12/12 08:34:16 obache Exp $
+
+--- src/ebview.c.orig 2007-11-10 20:57:09.000000000 +0900
++++ src/ebview.c 2007-11-10 20:57:27.000000000 +0900
+@@ -15,8 +15,6 @@
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+-#define GTK_DISABLE_DEPRECATED 1
+-
+ #define _GLOBAL
+ #include <signal.h>
+ #include <pthread.h>