unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: "N. Jackson" <nljlistbox2@gmail.com>
Cc: 20182@debbugs.gnu.org
Subject: bug#20182: 24.4.91; [GTK3] Vertical scroll bar is "indented" from right edge of frame
Date: Mon, 23 Mar 2015 22:48:28 +0100	[thread overview]
Message-ID: <55108A2C.1010608@gmx.at> (raw)
In-Reply-To: <874mpbwglg.fsf@moondust.localdomain>

 > I'm guessing there must be a way to get the correct value from the
 > toolkit rather than hard coding it to 16?

It's not hardcoded to 16, it's rounded up.  The respective code is

   gtk_widget_style_get (wscroll, "slider-width", &w, "trough-border", &b, NULL);
   ...
   w += 2*b;
   if (w < 16) w = 16;

so we do get it from the toolkit but we adjust it thereafter.  For the
height of the horizontal scroll bars I used

   gtk_widget_style_get (wscroll, "slider-width", &w, "trough-border", &b, NULL);
   ...
   w += 2*b;
   if (w < 12) w = 12;

and you should be able to verify that this doesn't cause the same
problem.  I asked Jan about this and he answered that 16 was used
because of problems with Gtk2 (IIRC).  Maybe he can tell more.

martin





  reply	other threads:[~2015-03-23 21:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23 18:58 bug#20182: 24.4.91; [GTK3] Vertical scroll bar is "indented" from right edge of frame N. Jackson
2015-03-23 19:54 ` martin rudalics
2015-03-23 21:26   ` N. Jackson
2015-03-23 21:48     ` martin rudalics [this message]
2015-03-24  6:02       ` Jan D.
2015-03-24 10:51         ` martin rudalics
2015-03-24 16:16           ` Jan D.
2015-03-24 20:39             ` N. Jackson
2015-03-24 21:06               ` N. Jackson
2015-03-24 21:38               ` Jan D.
2015-03-24 23:20                 ` N. Jackson
2015-03-25  6:05                   ` Jan D.
2015-03-25 10:25             ` martin rudalics
2015-07-06 11:08               ` martin rudalics

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=55108A2C.1010608@gmx.at \
    --to=rudalics@gmx.at \
    --cc=20182@debbugs.gnu.org \
    --cc=nljlistbox2@gmail.com \
    /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).