From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Lancaster Newsgroups: gmane.emacs.devel Subject: GTK Emacs: toolbar disappears in GTK2 "Text Only" mode Date: 16 Feb 2003 19:43:55 -0800 Organization: Sourceforge Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <7ud6lrmv0k.fsf@allele2.biol.berkeley.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045453909 9419 80.91.224.249 (17 Feb 2003 03:51:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2003 03:51:49 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18kcJo-0002Rn-00 for ; Mon, 17 Feb 2003 04:51:48 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18kcY1-00047Y-00 for ; Mon, 17 Feb 2003 05:06:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18kcLa-0000Rz-05 for emacs-devel@quimby.gnus.org; Sun, 16 Feb 2003 22:53:38 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18kcL9-0008Qg-00 for emacs-devel@gnu.org; Sun, 16 Feb 2003 22:53:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18kcL0-0007yY-00 for emacs-devel@gnu.org; Sun, 16 Feb 2003 22:53:05 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18kcKx-0007jh-00 for emacs-devel@gnu.org; Sun, 16 Feb 2003 22:52:59 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18kcIG-0002O9-00 for ; Mon, 17 Feb 2003 04:50:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18kc9t-00022q-00 for ; Mon, 17 Feb 2003 04:41:33 +0100 Original-Lines: 46 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11692 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11692 After "cvs update"-ing CVS HEAD, I attempted a clean build with GTK engaged (after removing my old Emacs build and installation directory), using "configure/make bootstrap". $ ~/src/remote-cvs/gnu.org/emacs/configure --prefix=/opt/EmacsCVS --with-gtk $ make bootstrap $ sudo make install I then ran the installed version: $ /opt/EmacsCVS/bin/emacs -q I can see the toolbar (and the tooltips are there), but none of the toolbar pixmap icons appear, just little button-like squares appear (with associated tooltips) under my mouse as I scan across the toolbar. I eventually realised that this was due to my GTK "Menu and Toolbar Preferences" "Button Labels" was set to "Text Only". This is OK for most other GTK2 apps, which already have text versions of the buttons, but in the case of Emacs, this just causes the buttons to become almost invisible, since there doesn't appear to be alternative text versions of these buttons. I think Emacs should do a combination of two things in this situation: 1. have a separate variable to override/ignore the GTK2 preference, and display the icons regardless of the "Button Label" preference 2. supply "text-only" versions of the pixmaps so the toolbar looks OK when "Text Only" buttons are selected My preference is that the default be (2), as it would make Emacs behave consistently with respect to other GTK2 applications. An additional (non-default) option could be added to support (1). This would seem to add the maximum configurability whilst retaining the consistent GTK2 behaviour. The behaviour should certainly not be left as it is, because the toolbar basically becomes invisible when the GTK2 preference is switched leading to confusion (as it clearly did in my case). Otherwise, very nice job on the toolbar! It's great to be able to tear it off like a regular GTK app! Alex