summaryrefslogtreecommitdiffstats
path: root/x11-plugins/gkrellm-xkb/files/gkrellm-xkb-ds-subs.patch
blob: 59698e28e45af5986aa4a32ac357b60cb766897c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -dPNur gkrellm-xkb-1.05/main.c gkrellm-xkb-1.05-new/main.c
--- gkrellm-xkb-1.05/main.c	2004-02-21 20:26:36.000000000 +0400
+++ gkrellm-xkb-1.05-new/main.c	2006-12-04 15:03:42.000000000 +0400
@@ -585,7 +585,7 @@
             int i;
             i = 0;
             while (global_flag_map[i].country_code) {
-                if (g_ascii_strcasecmp(global_flag_map[i].country_code, xkb_rules[pos]) == 0) {
+                if (STARTS_WITH(xkb_rules[pos], global_flag_map[i].country_code)) {
                     group->flag_xpm = global_flag_map[i].flag_pointer;
                     /* fprintf(stderr, "xkb_find_flag_from_rules: found flag: %s\n", xkb_rules[pos]); */
                     return True;