1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/arabic/katoob/files/patch-src-init.c
Will Andrews a3b1dbe9f1 Add katoob 0.3.5, a light-weight, bidirectional editor for arabic
texts.

PR:		57511
Submitted by:	Pav Lucistnik <pav@oook.cz> through
		Samy Al Bahra <samy@kerneled.com> (maintainer)
2003-11-09 16:35:38 +00:00

22 lines
509 B
C

--- src/init.c Tue Aug 26 07:54:35 2003
+++ /home/samy/development/katoob/src/init.c Thu Aug 28 00:36:48 2003
@@ -101,7 +101,18 @@
katoob->xkb_grps[i] =
XGetAtomName (GDK_DISPLAY (), kbinfo->names->groups[i]);
}
+ else
+ {
+ katoob->xkb_grps[i] = NULL;
+ }
}
+ }
+
+/* Let's NULL all the remaining array. */
+ while (grpnum < XkbNumKbdGroups)
+ {
+ katoob->xkb_grps[grpnum] = NULL;
+ ++grpnum;
}
XkbGetControls (GDK_DISPLAY (), XkbAllControlsMask, kbinfo);