all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: DJ Stauffer <emacsdev@djstauffer.com>, emacs-devel@gnu.org
Subject: Re: GTK interface modification
Date: Tue, 14 Aug 2018 10:09:53 +0200	[thread overview]
Message-ID: <5B728E51.3070708@gmx.at> (raw)
In-Reply-To: <0520ad1f-1b7a-dd80-5030-00c07754d9c4@djstauffer.com>

 > What I'd like to do is put a one or two pixel border (of whatever
 > color I configure, naturally) around the outer edge of the window,
 > to indicate that the window is selected.

It won't be easy.  First you will have to decide whether that border
should go away when the window is deselected or you just want to
change its appearance.  I'd choose the latter because you only have to
redraw the border when a window gets (de-)selected and not the rest of
the window.

Then you have to make sure that the position and size of the window's
text area are calculated correctly.  Hence window_text_bottom_y and
the window_box functions in xdisp.c have to be modified accordingly.

And finally you have to actually redraw the border when a window gets
(de-)selected, the appropriate moments given by the mode-line code.

BTW, there's no sense to make this GTK specific.  Drawing windows is
handled by Emacs itself with some toolkit support for the scroll bars.

Good luck, martin



  reply	other threads:[~2018-08-14  8:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-13 23:14 GTK interface modification DJ Stauffer
2018-08-14  8:09 ` martin rudalics [this message]
2018-08-15  6:34   ` DJ Stauffer
2018-08-15  8:07     ` martin rudalics
2018-08-15 13:45       ` DJ Stauffer
2018-08-14  8:17 ` Yuri Khan
2018-08-15  6:35   ` DJ Stauffer

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

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

  git send-email \
    --in-reply-to=5B728E51.3070708@gmx.at \
    --to=rudalics@gmx.at \
    --cc=emacs-devel@gnu.org \
    --cc=emacsdev@djstauffer.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.