From: DJ Stauffer <emacsdev@djstauffer.com>
To: emacs-devel@gnu.org
Subject: Re: GTK interface modification
Date: Wed, 15 Aug 2018 01:34:22 -0500 [thread overview]
Message-ID: <70782a8a-8e7c-4f4b-819c-7996ace07bca@djstauffer.com> (raw)
In-Reply-To: <5B728E51.3070708@gmx.at>
On 08/14/2018 03:09 AM, martin rudalics wrote:
> > 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.
^ Yeah, that's kind of how I figured it would work.
>
> 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.
>
^ Yeah I figured that I'd be modifying xdisp.c -- I've done a bit of
that in the past when modifying someone else's patch years ago.
> And finally you have to actually redraw the border when a window gets
> (de-)selected, the appropriate moments given by the mode-line code.
^ Is this also in xdisp.c, or is that code elsewhere?
>
> 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.
^ I was trying to specify that I wanted something to work in the
graphical version of emacs (and wasn't worried about the terminal
version, for obvious reasons ) -- since I primarily use the graphical
version. I probably should have worded that differently, but the GTK
version is the only one I ever use, so that's what pops in my head when
thinking of the graphical version.
Thanks for the help.
next prev parent reply other threads:[~2018-08-15 6:34 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
2018-08-15 6:34 ` DJ Stauffer [this message]
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=70782a8a-8e7c-4f4b-819c-7996ace07bca@djstauffer.com \
--to=emacsdev@djstauffer.com \
--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 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.