From: Stefan Schmidt Date: Mon, 13 Dec 2010 14:07:57 +0000 (+0100) Subject: matchbox-keyboard-inputmethod: Add support for bug20 layout X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=795c18b0eb7ae141d9e2bc208909cf1ab9578037;p=openembedded.git matchbox-keyboard-inputmethod: Add support for bug20 layout --- diff --git a/recipes/matchbox-keyboard/files/bug20/80matchboxkeyboard b/recipes/matchbox-keyboard/files/bug20/80matchboxkeyboard new file mode 100644 index 0000000000..21e78ac163 --- /dev/null +++ b/recipes/matchbox-keyboard/files/bug20/80matchboxkeyboard @@ -0,0 +1,20 @@ +#!/bin/sh + +CMD="" + +if [ "$DISPLAY_CAN_ROTATE" = "1" ]; then + if [ "$HAVE_KEYBOARD_PORTRAIT" = "1" -a "$HAVE_KEYBOARD_LANDSCAPE" = "0" ]; then + CMD="matchbox-keyboard -d -o landscape" + elif [ "$HAVE_KEYBOARD_LANDSCAPE" = "1" -a "$HAVE_KEYBOARD_PORTRAIT" = "0" ]; then + CMD="matchbox-keyboard -d -o portrait" + fi +else + CMD="matchbox-keyboard -d" +fi + + +# Delay to make sure the window manager is active + +if [ "$CMD" ]; then + (sleep 2 && $CMD bug) & +fi diff --git a/recipes/matchbox-keyboard/files/keyboard-bug.xml b/recipes/matchbox-keyboard/files/keyboard-bug.xml new file mode 100644 index 0000000000..0193a2908c --- /dev/null +++ b/recipes/matchbox-keyboard/files/keyboard-bug.xml @@ -0,0 +1,382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/recipes/matchbox-keyboard/files/mb_kb_mods.patch b/recipes/matchbox-keyboard/files/mb_kb_mods.patch new file mode 100644 index 0000000000..3377b84845 --- /dev/null +++ b/recipes/matchbox-keyboard/files/mb_kb_mods.patch @@ -0,0 +1,14 @@ +Index: matchbox-keyboard/src/matchbox-keyboard-key.c +=================================================================== +--- matchbox-keyboard.orig/src/matchbox-keyboard-key.c 2007-10-20 14:07:47.000000000 -0400 ++++ matchbox-keyboard/src/matchbox-keyboard-key.c 2008-08-26 11:18:33.000000000 -0400 +@@ -589,8 +589,7 @@ + { + if (mb_kbd_has_any_state(kbd)) + { +- mb_kbd_remove_state(kbd, (MBKeyboardStateShifted| +- MBKeyboardStateMod1| ++ mb_kbd_remove_state(kbd, (MBKeyboardStateShifted| + MBKeyboardStateMod2| + MBKeyboardStateMod3| + MBKeyboardStateControl| diff --git a/recipes/matchbox-keyboard/files/mb_kbd_size.patch b/recipes/matchbox-keyboard/files/mb_kbd_size.patch new file mode 100644 index 0000000000..5ecf1ade13 --- /dev/null +++ b/recipes/matchbox-keyboard/files/mb_kbd_size.patch @@ -0,0 +1,15 @@ +Index: matchbox-keyboard/src/matchbox-keyboard-ui.c +=================================================================== +--- matchbox-keyboard.orig/src/matchbox-keyboard-ui.c 2008-02-07 08:14:02.000000000 -0500 ++++ matchbox-keyboard/src/matchbox-keyboard-ui.c 2008-08-26 16:58:10.000000000 -0400 +@@ -860,8 +860,8 @@ + MARK(); + + /* Don't scale beyond a sensible height on wide screens */ +- if (height > (ui->dpy_height / 3)) +- height = ui->dpy_height / 3; ++ if (height > (ui->dpy_height / 2)) ++ height = ui->dpy_height / 2; + + width_diff = width - ui->base_alloc_width; + height_diff = height - ui->base_alloc_height; diff --git a/recipes/matchbox-keyboard/matchbox-keyboard-inputmethod_svn.bb b/recipes/matchbox-keyboard/matchbox-keyboard-inputmethod_svn.bb index f8822e7e03..516c8ee6fa 100644 --- a/recipes/matchbox-keyboard/matchbox-keyboard-inputmethod_svn.bb +++ b/recipes/matchbox-keyboard/matchbox-keyboard-inputmethod_svn.bb @@ -5,7 +5,7 @@ RCONFLICTS_${PN} = "matchbox-keyboard" SECTION = "x11" SRCREV = "1910" PV = "0.0+svnr${SRCPV}" -PR = "r12" +PR = "r13" SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=matchbox-keyboard;proto=http \ file://smallscreen-fontsize.patch \ @@ -17,6 +17,10 @@ SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=matchbox-keyboard;pr file://7-Newer-autotools.patch \ file://80matchboxkeyboard" +SRC_URI_append_bug20 = " file://mb_kb_mods.patch \ + file://mb_kbd_size.patch \ + file://keyboard-bug.xml" + SRC_URI_append_om-gta01 = " file://fic-gta01-font-size.patch" SRC_URI_append_om-gta02 = " file://fic-gta01-font-size.patch" @@ -46,6 +50,13 @@ do_install_append () { install -m 755 ${WORKDIR}/80matchboxkeyboard ${D}/${sysconfdir}/X11/Xsession.d/ } +do_install_append_bug20 () { + install -d ${D}/${sysconfdir}/X11/Xsession.d/ + install -m 755 ${WORKDIR}/80matchboxkeyboard ${D}/${sysconfdir}/X11/Xsession.d/ + install -d ${D}/${datadir}/matchbox-keyboard/ + install -m 644 ${WORKDIR}/keyboard-bug.xml ${D}/${datadir}/matchbox-keyboard/ +} + pkg_postinst_matchbox-keyboard-im () { if [ "x$D" != "x" ]; then exit 1