From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel 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 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169502561 10211 80.91.229.12 (22 Jan 2007 21:49:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2007 21:49:21 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 22 22:49:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H96yD-0002wl-6l for ged-emacs-devel@m.gmane.org; Mon, 22 Jan 2007 22:44:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H96yC-0005X0-Ta for ged-emacs-devel@m.gmane.org; Mon, 22 Jan 2007 16:44:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H96xT-0004b6-9X for emacs-devel@gnu.org; Mon, 22 Jan 2007 16:44:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H96xS-0004ZD-Iw for emacs-devel@gnu.org; Mon, 22 Jan 2007 16:44:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H96xS-0004Z3-7p for emacs-devel@gnu.org; Mon, 22 Jan 2007 16:44:06 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H96xR-0007I2-PI for emacs-devel@gnu.org; Mon, 22 Jan 2007 16:44:05 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1H96xF-0007HC-2A for emacs-devel@gnu.org; Mon, 22 Jan 2007 22:43:53 +0100 Original-Received: from fw01.cmbrmaks.akamai.com ([80.67.64.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Jan 2007 22:43:53 +0100 Original-Received: from tzz by fw01.cmbrmaks.akamai.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Jan 2007 22:43:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: fw01.cmbrmaks.akamai.com X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux) Cancel-Lock: sha1:ROCGqgk4DJQZ6whkai5Tfcy+Il4= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65390 Archived-At: 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