From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Gtk patch version 2, part 1 Date: Tue, 17 Dec 2002 20:14:09 +0100 (MET) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200212172010.gBHKAO0U015695@stubby.bodenonline.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1040152988 27417 80.91.224.249 (17 Dec 2002 19:23:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2002 19:23:08 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ONIz-00076s-00 for ; Tue, 17 Dec 2002 20:23:01 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ONX4-0001b2-00 for ; Tue, 17 Dec 2002 20:37:35 +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 18ONGj-0001A1-06 for emacs-devel@quimby.gnus.org; Tue, 17 Dec 2002 14:20:41 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18ONG5-0000yn-00 for emacs-devel@gnu.org; Tue, 17 Dec 2002 14:20:01 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ONFk-0000qx-00 for emacs-devel@gnu.org; Tue, 17 Dec 2002 14:19:41 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ONAW-0007qm-00; Tue, 17 Dec 2002 14:14:16 -0500 Original-Received: from accessno42.bodenonline.com (IDENT:root@accessno42.bodenonline.com [193.201.16.44]) gBHKAO0U015695; Tue, 17 Dec 2002 21:10:24 +0100 Original-To: miles@gnu.org In-Reply-To: from "Miles Bader" at dec 17, 2002 11:03:35 X-Mailer: ELM [version 2.5 PL0pre8] 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:10230 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10230 > > > Scrollbar problems is fixed, although some borderline cases look strange > > (but they also look strange with Motif). > > Scrollbars seem to still be incorrect in one case: when the buffer is > zero-length. In this case, the scroll-bar thumb should cover the whole > bar, but emacs-gtk displays a `tiny' thumb, as used when the document > is very large. I should have caught that. It is an easy fix. Thanks. > I also notice that scrollbars flicker _a lot_, to the extent that it's > pretty annoying. This happens even if you just move the cursor around > within the screen (so that no redraw should be necessary), but only when > it moves to a new line, e.g., if you just repeat `C-n C-p C-n C-p ...' > it will flicker for each command. I will take a look. It does not look terribly bad on my machine, I will try on a slower one so the effect really shows. > Also, menu display seems noticably slower than with `lucid toolkit' > menus, but that may be just GTK being slow (or some sort of intentional > delay). This is probably due to the non-optimal rebuilding of Emacs menus that this code currently does. I wanted something working, so when Emacs tells the UI code to rebuild menus, I basically throw away the old menus and create new ones. It has always been my plan to make this better, I will move it up in priority. I must do this for detachable menus also. > I still don't want to use it for everyday use, because the menu bar is > too big and ugly, but that's partially Gnome/GTK's fault -- it only > seems to have _one_ font you can specify, which gets used for everything > (and I want to keep the large font for my `panel' text)! > > Hopefully a future version of emacs-gtk will allow overriding some of > the horrid GTK defaults... I'd like, at least: (1) menu font, and > (2) some way to reduce the gratuitous whitespace used around menu-bar > labels (there are at least two whitespace areas -- the whitespace which > is `part of' the menu-label-button, and additional whitespace around > that; I'd like to reduce the second to zero). There are ways for 1 at least. I don't know about 2, the code in Emacs just uses the menubar widget as is. I'll check if there is something one can customize. For 1) you can create a file ~/.gtkrc-2.0 and put into it something like: style "menubar" { font = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1" } widget_class "*GtkMenu*" style "menubar" One can also use 'font_set = ...' or us Pango font names with font_name = "helvetica bold 14" Unfortunately I haven't set names on all widgets yet, so the above setting will affect all your GTK menus. Later on, you can say somthing like widget "Emacs.*.menubar.*" style "menubar" Jan D.