unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: Gtk patch version 2, part 1
Date: Tue, 17 Dec 2002 20:14:09 +0100 (MET)	[thread overview]
Message-ID: <200212172010.gBHKAO0U015695@stubby.bodenonline.com> (raw)
In-Reply-To: <buo8yypcsg8.fsf@mcspd15.ucom.lsi.nec.co.jp> from "Miles Bader" at dec 17, 2002 11:03:35

> 
> > 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.

  parent reply	other threads:[~2002-12-17 19:14 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-16 20:22 Gtk patch version 2, part 1 Jan D.
2002-12-17  2:03 ` Miles Bader
2002-12-17  5:18   ` Eric Gillespie
2002-12-17  5:26     ` Eric Gillespie
2002-12-17  5:55       ` Miles Bader
2002-12-17  6:21         ` Eric Gillespie
2002-12-17  8:57           ` Miles Bader
2002-12-17  9:15             ` Miles Bader
2002-12-17 10:42               ` Eric Gillespie
2002-12-17 19:45                 ` Jan D.
2002-12-18  2:01               ` Richard Stallman
2002-12-17  9:29             ` Eric Gillespie
2002-12-17 19:15           ` Jan D.
2002-12-17  9:32   ` Miles Bader
2002-12-17 19:22     ` Jan D.
2002-12-17 19:14   ` Jan D. [this message]
2002-12-18  1:08     ` Miles Bader
2002-12-18  6:40       ` Jan D.
2002-12-17 10:14 ` Simon Josefsson
2002-12-17 19:25   ` Jan D.
2002-12-18  0:50     ` Nick Roberts
2002-12-18 18:51       ` Richard Stallman
2002-12-17 18:44 ` Richard Stallman
2002-12-17 19:36   ` Jan D.
2002-12-18  5:54     ` Eli Zaretskii
2002-12-18 14:59       ` Alex Schroeder
2002-12-19 18:33         ` Richard Stallman
2002-12-20 15:21           ` Kai Großjohann

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200212172010.gBHKAO0U015695@stubby.bodenonline.com \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).