summaryrefslogtreecommitdiff
path: root/inputmethod/scim-tomoe/patches/patch-ab
blob: 317783fe39461db6203199da44764335422ee186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.2 2010/06/27 08:05:31 obache Exp $

support gucharmap-2

--- src/scim_tomoe_prefs_widget.cpp.orig	2007-05-07 07:49:15.000000000 +0000
+++ src/scim_tomoe_prefs_widget.cpp
@@ -472,9 +472,13 @@ apply_config (ScimTomoePrefsWidget *pref
         String (SCIM_TOMOE_CONFIG_UNICODE_TABLE_FONT_DEFAULT));
 
     if (font.length() > 0) {
-        gucharmap_charmap_set_font (charmap, font.c_str ());
+        PangoFontDescription *desc = pango_font_description_from_string(font.c_str ());
+        gucharmap_charmap_set_font_desc (charmap, desc);
+        pango_font_description_free (desc);
     } else {
-        gucharmap_charmap_set_font (charmap, NULL);
+        PangoFontDescription *desc = pango_font_description_new ();
+        gucharmap_charmap_set_font_desc (charmap, desc);
+        pango_font_description_free (desc);
         set_default_font (prefs, SCIM_TOMOE_CONFIG_CAND_FONT,
                           GTK_WIDGET (charmap));
     }