From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: GTK interface modification Date: Tue, 14 Aug 2018 10:09:53 +0200 Message-ID: <5B728E51.3070708@gmx.at> References: <0520ad1f-1b7a-dd80-5030-00c07754d9c4@djstauffer.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1534234123 4510 195.159.176.226 (14 Aug 2018 08:08:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2018 08:08:43 +0000 (UTC) To: DJ Stauffer , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 14 10:08:39 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fpUNb-00015L-7X for ged-emacs-devel@m.gmane.org; Tue, 14 Aug 2018 10:08:39 +0200 Original-Received: from localhost ([::1]:42964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpUPh-0003R5-Sl for ged-emacs-devel@m.gmane.org; Tue, 14 Aug 2018 04:10:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpUP3-0003QS-5k for emacs-devel@gnu.org; Tue, 14 Aug 2018 04:10:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpUOz-0004KW-5j for emacs-devel@gnu.org; Tue, 14 Aug 2018 04:10:09 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:42247) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fpUOy-0004JF-Qu for emacs-devel@gnu.org; Tue, 14 Aug 2018 04:10:05 -0400 Original-Received: from [192.168.1.101] ([212.95.5.116]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M6SJX-1g4YJA1MMt-00yPbf; Tue, 14 Aug 2018 10:09:59 +0200 In-Reply-To: <0520ad1f-1b7a-dd80-5030-00c07754d9c4@djstauffer.com> X-Provags-ID: V03:K1:c35E1wxA0CoDa+UsJn6b6EjtNB/cTOhNSFozEf/ed7ciGrVqqge 8fWdygOdz4Ea3hFV8JBr9AhTxNBrCrt7sZsO2aiJLD+lz4fag9Q1r3yeId97zcJ0jMPXFrV n1JCfurws1loY+TNaHxIB4vo6W2/d42ZtA6SjSKAihHlxoXEmzLOnlGfuc7t2pm+IjzHp7W BA6NgxCXPH9dEcY7Gu/sQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:JUMwmihSVFA=:QVenhZ4pf9A50AgL83pLzX XZeBZQy30v1uyj6W6dhj3mjsxnfDEuu22gQ/ZWqCP9nlFmTcHjYK81YTpp1T+A8jMsJmUFxZb blpElLrFL+FrxyW62Rooio7EZJ/xiyWMbMOxX9d87W9qZ9aVdPu/MqiusC+ROSs0RGZk9IhJo 8tIyC+1G+yly8ndY9ixGVBX8QC2i6VygxxgdRGCM+SKEE/1lZ7EqammbQVPobXIqR9ReUOQSv b9tMtyehvHk5XsZ9RIxy2E94b2AUD+NUBAAWG+QhTJj0gRkgM6bvLKxo5Uu37vq0gkKUH9wql W733ARdXJoMneLy/dwRt30cG2pWLi9voo+YVlcVgQ2qCQ54pQs5LKCL2K8kXLuYgVHoGV0pJR 6ijuaa5Q1AROBHGzkcI4u5GD5dsnmiJHjEMVP0nKQ7sRTE51BkilPjFzus4Nt/n3fgCCGJQ8g fwOUGcF9FvulXjnC09CTdC47sC2Bs6MSalla/o9aooVTcIxzwP8maRocoETo238v0VRDyBP27 bIJn3goG+/Ip3xaStBurdDmZBQbC2Vez+FZfQXRlzzXLtVdipWwxcOhJWcyKS8jwhTz7Vr9yP 6Iklvxz5QKuiCSFpTk42z/4fBi55jywt9MT/tVe4+qgpVH2lcWQJnbsPS5Gc7jgY+Jh8+e49m FTXwtZLfunRIRyTB8NtmpnnBojPZegLc6XYzC22PwpbM8SYlolfHjhrRaltXVBH2K+JqAqua9 VxokTAQ5MSjqRWhb+eCkwHiEBus3M52+EaK8kNAQdupKzvUymXwUQrN3JVz4r7HD6ohekW6c X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228519 Archived-At: > 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