[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs X/GTK code trouble with Maemo

From: Ted Zlatanov
Subject: Re: Emacs X/GTK code trouble with Maemo
Date: Tue, 23 Jan 2007 11:31:51 -0500
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)

On 23 Jan 2007, address@hidden wrote:

> Ted Zlatanov skrev:
>> 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.
> No, buffer windows are GTK drawing areas.  Text is handeled with X
> primitives, like XDrawImageString.  GTK text input widgets just don't
> have what it takes to handle all Emacs requirements for text.  Also,
> there is no GTK-specific drawing code for text, it is generic for all
> X platforms.

OK.  This is what I thought, based on my reading of the code (it
looked like all the drawing was done in one routine, regardless of
USE_GTK), but as I said I'm just not very experienced with X and GTK
code, so it's good to know for sure.

>> 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.
> The main event loop is, as you say below, in
> src/xterm.c:XTread_socket.  The individual events are handeled in
> handle_one_xevent.  Focus changes are dealt with in x_focus_changed.

I will try to insert my code in handle_one_xevent and x_focus_changed
and report back (with a patch, I hope!).  Thank you very much for the


reply via email to

[Prev in Thread] Current Thread [Next in Thread]