From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Emacs X/GTK code trouble with Maemo (was: porting and packaging Emacs to a new platform: Maemo)
Date: Mon, 22 Jan 2007 16:43:37 -0500 [thread overview]
Message-ID: <g69ac0a3fg6.fsf@dhcp-65-162.kendall.corp.akamai.com> (raw)
In-Reply-To: g69tzysoy0w.fsf@dhcp-65-162.kendall.corp.akamai.com
I'm having a problem with the Emacs X code. Specifically, on the
Maemo platform, standard GTK widgets that accept text entry will get a
pop-up keyboard. With Emacs, however, I am not able to get that
keyboard with Emacs buffer windows. I was pointed to some
documentation, which suggests that either I need to use standard GTK
widgets or manually call the functions Window::AcquireKeyboardInput()
and Window::ReleaseKeyboardInput(), plus handle some X events.
I'm using this post as reference:
http://www.gossamer-threads.com/lists/maemo/developers/13600?search_string=input;#13600
Plus these snippets:
https://garage.maemo.org/snippet/browse.php?by=lang&lang=2
You can get more information about input methods for Maemo here:
http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#input
You can install the Maemo SDK easily on a Debian system:
http://maemo.org/platform/docs/howtos/Maemo_tutorial_bora.html
My questions:
1) are buffer windows text-input-capable GTK widgets when --with-gtk
is used? If yes, something is going wrong in the setup phase, and
they don't accept keyboard input when they should.
2) Assuming "no" to (1), if I have to use the manual acquire/release
keyboard functions, where would I make that change? I couldn't find a
gain/lose focus event in the C code. Also, where would I handle the X
events? I need to handle them to tell Maemo that the keyboard is safe
to bring up.
I think I can use src/window.c:select-window() to acquire the
keyboard. X Events seem to be processed in
src/xterm.c:XTread_socket(). My inexperience with GTK and X, however,
is making it hard for me to understand what's going on, and I would
like some help from people that understand the Emacs X internals better.
Thanks!
Ted
next prev parent reply other threads:[~2007-01-22 21:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-15 20:06 porting and packaging Emacs to a new platform: Maemo Ted Zlatanov
2007-01-22 21:43 ` Ted Zlatanov [this message]
2007-01-23 7:16 ` Emacs X/GTK code trouble with Maemo Jan Djärv
2007-01-23 16:31 ` Ted Zlatanov
2007-01-24 18:56 ` Ted Zlatanov
2007-01-24 19:57 ` Ted Zlatanov
2007-01-24 20:10 ` Jan Djärv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=g69ac0a3fg6.fsf@dhcp-65-162.kendall.corp.akamai.com \
--to=tzz@lifelogs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.