1 remove mb and XWC support, as tinyx doesnt support this
4 # Patch managed by http://www.holgerschurig.de/patcher.html
7 --- gtk+-1.2.10/gdk/gdkdraw.c~no-xwc
8 +++ gtk+-1.2.10/gdk/gdkdraw.c
14 else if (font->type == GDK_FONT_FONTSET)
16 XFontSet fontset = (XFontSet) font_private->xfont;
17 XmbDrawString (drawable_private->xdisplay, drawable_private->xwindow,
18 fontset, gc_private->xgc, x, y, string, strlen (string));
22 g_error("undefined font type\n");
25 gc_private->xgc, x, y, (XChar2b *) text, text_length / 2);
29 else if (font->type == GDK_FONT_FONTSET)
31 XFontSet fontset = (XFontSet) font_private->xfont;
32 XmbDrawString (drawable_private->xdisplay, drawable_private->xwindow,
33 fontset, gc_private->xgc, x, y, text, text_length);
37 g_error("undefined font type\n");
44 else if (font->type == GDK_FONT_FONTSET)
46 if (sizeof(GdkWChar) == sizeof(wchar_t))
53 g_error("undefined font type\n");
55 --- gtk+-1.2.10/gdk/gdkim.c~no-xwc
56 +++ gtk+-1.2.10/gdk/gdkim.c
59 current_locale = setlocale (LC_ALL, NULL);
62 if ((strcmp (current_locale, "C")) && (strcmp (current_locale, "POSIX")))
67 g_message ("%s multi-byte string functions.",
68 gdk_use_mb ? "Using" : "Not using"));
72 return current_locale;
92 /* NoMem or LocaleNotSupp */
96 if (XwcTextPropertyToTextList (gdk_display, &tpr, &wstrs, &num_wstrs)
100 dest[len_cpy] = wstr_src[len_cpy];
101 XwcFreeStringList (wstrs);
107 --- gtk+-1.2.10/gdk/gdkfont.c~no-xwc
108 +++ gtk+-1.2.10/gdk/gdkfont.c
110 gdk_xid_table_remove (((XFontStruct *) private->xfont)->fid);
111 XFreeFont (private->xdisplay, (XFontStruct *) private->xfont);
114 case GDK_FONT_FONTSET:
115 XFreeFontSet (private->xdisplay, (XFontSet) private->xfont);
119 g_error ("unknown font type.");
122 return (((XFontStruct *) privatea->xfont)->fid ==
123 ((XFontStruct *) privateb->xfont)->fid);
126 else if (fonta->type == GDK_FONT_FONTSET && fontb->type == GDK_FONT_FONTSET)
128 gchar *namea, *nameb;
131 return (strcmp(namea, nameb) == 0);
135 /* fontset != font */
137 @@ -333,10 +337,12 @@
138 width = XTextWidth16 (xfont, (XChar2b *) string, strlen (string) / 2);
142 case GDK_FONT_FONTSET:
143 fontset = (XFontSet) font_private->xfont;
144 width = XmbTextEscapement (fontset, string, strlen(string));
150 @@ -372,10 +378,12 @@
151 width = XTextWidth16 (xfont, (XChar2b *) text, text_length / 2);
155 case GDK_FONT_FONTSET:
156 fontset = (XFontSet) private->xfont;
157 width = XmbTextEscapement (fontset, text, text_length);
168 case GDK_FONT_FONTSET:
169 if (sizeof(GdkWChar) == sizeof(wchar_t))
179 @@ -474,10 +484,12 @@
180 width = XTextWidth (xfont, &character, 1);
184 case GDK_FONT_FONTSET:
185 fontset = (XFontSet) private->xfont;
186 width = XmbTextEscapement (fontset, &character, 1) ;
197 case GDK_FONT_FONTSET:
198 fontset = (XFontSet) private->xfont;
201 width = XwcTextEscapement (fontset, &char_wc, 1) ;
210 *descent = overall.descent;
213 case GDK_FONT_FONTSET:
214 fontset = (XFontSet) private->xfont;
215 XmbTextExtents (fontset, text, text_length, &ink, &logical);
218 *descent = ink.y + ink.height;
229 case GDK_FONT_FONTSET:
230 fontset = (XFontSet) private->xfont;
234 *descent = ink.y + ink.height;
240 @@ -750,11 +768,13 @@
242 width = overall.rbearing;
245 case GDK_FONT_FONTSET:
246 fontset = (XFontSet) private->xfont;
247 XmbTextExtents (fontset, text, text_length, &ink, &log);
248 width = ink.x + ink.width;
254 @@ -818,11 +838,13 @@
256 height = overall.ascent + overall.descent;
259 case GDK_FONT_FONTSET:
260 fontset = (XFontSet) private->xfont;
261 XmbTextExtents (fontset, text, text_length, &ink, &log);