summaryrefslogtreecommitdiff
path: root/inputmethod/scim-tomoe/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'inputmethod/scim-tomoe/patches/patch-ab')
-rw-r--r--inputmethod/scim-tomoe/patches/patch-ab24
1 files changed, 19 insertions, 5 deletions
diff --git a/inputmethod/scim-tomoe/patches/patch-ab b/inputmethod/scim-tomoe/patches/patch-ab
index eca48c8ba59..9946cf24cf3 100644
--- a/inputmethod/scim-tomoe/patches/patch-ab
+++ b/inputmethod/scim-tomoe/patches/patch-ab
@@ -1,18 +1,32 @@
-$NetBSD: patch-ab,v 1.1 2010/05/28 09:31:35 obache Exp $
+$NetBSD: patch-ab,v 1.1.2.1 2010/07/04 07:18:43 agc Exp $
-support gucharmap-2
+* GtkSpinButton: setting an adjustment with non-zero page size is deprecated
+* 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,9 @@ apply_config (ScimTomoePrefsWidget *pref
+@@ -170,7 +170,7 @@ create_spin_button (ScimTomoePrefsWidget
+ gtk_widget_show (label);
+
+ GtkObject *adj = gtk_adjustment_new (value, min, max, step,
+- page_size, page_size);
++ page_size, 0.0);
+ GtkWidget *spin = gtk_spin_button_new (GTK_ADJUSTMENT (adj), 0.0, 0);
+ g_object_set_data (G_OBJECT (spin),
+ OBJECT_DATA_CONFIG_KEY, (gpointer) key);
+@@ -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 ());
-+ gucharmap_charmap_set_font_desc (charmap, pango_font_description_from_string(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);
-+ gucharmap_charmap_set_font_desc (charmap, pango_font_description_from_string(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));
}