diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-02 05:23:45 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-02 05:23:45 +0200 |
commit | 576b6208d6defe240bfa2477d6dd19f1ed83bfaf (patch) | |
tree | 7d54883f16cccc4cbd414398d7fec3c437b36b49 /x11-libs/gtk+/files/gtk+-1.2.10-rh-fontwarning.patch | |
parent | fdd6b67a78a966f6a2131de8fe0e539316511083 (diff) | |
download | darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.tar.gz darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.tar.bz2 darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.tar.xz darklin4-576b6208d6defe240bfa2477d6dd19f1ed83bfaf.zip |
Cleaned most of outdated stuff
Diffstat (limited to 'x11-libs/gtk+/files/gtk+-1.2.10-rh-fontwarning.patch')
-rw-r--r-- | x11-libs/gtk+/files/gtk+-1.2.10-rh-fontwarning.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/x11-libs/gtk+/files/gtk+-1.2.10-rh-fontwarning.patch b/x11-libs/gtk+/files/gtk+-1.2.10-rh-fontwarning.patch deleted file mode 100644 index c3f6b27..0000000 --- a/x11-libs/gtk+/files/gtk+-1.2.10-rh-fontwarning.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- gtk+-1.2.10/gdk/gdkfont.c.fontwarning 2002-07-30 15:38:52.000000000 +0200 -+++ gtk+-1.2.10/gdk/gdkfont.c 2002-07-30 15:43:43.000000000 +0200 -@@ -26,6 +26,8 @@ - - #include <X11/Xlib.h> - #include <X11/Xos.h> -+#include <langinfo.h> -+#include <locale.h> - #include "gdk.h" - #include "gdkprivate.h" - -@@ -173,9 +175,26 @@ - if (missing_charset_count) - { - gint i; -- g_warning ("Missing charsets in FontSet creation\n"); -- for (i=0;i<missing_charset_count;i++) -- g_warning (" %s\n", missing_charset_list[i]); -+ const char *codeset; -+ -+ codeset = nl_langinfo (CODESET); -+ -+ /* Hack - UTF-8 is likely to be rendered with a list of -+ * possible legacy fallback charsets, so a failure here -+ * shouldn't be warned about. But we don't want to suppress -+ * this warning in general, since for other character sets -+ * it gives a useful indication of what went wrong. -+ */ -+ if (g_strcasecmp (codeset, "utf-8") != 0 && -+ g_strcasecmp (codeset, "utf8") != 0) -+ { -+ g_printerr ("The font \"%s\" does not support all the required character sets for the current locale \"%s\"\n", -+ fontset_name, setlocale (LC_ALL, NULL)); -+ for (i=0;i<missing_charset_count;i++) -+ g_printerr (" (Missing character set \"%s\")\n", -+ missing_charset_list[i]); -+ } -+ - XFreeStringList (missing_charset_list); - } - |