From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: Gtk tabs in emacs, new branch. Date: Sat, 10 Apr 2010 17:40:37 +0100 Message-ID: <4BC0AA05.6080106@harpegolden.net> References: <30298845.656931270806476838.JavaMail.www@wwinf4631> <4BBF0C6C.7000909@swipnet.se> <4BC011F5.9010505@swipnet.se> <4BC0A2EC.3060807@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1270917653 4164 80.91.229.12 (10 Apr 2010 16:40:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Apr 2010 16:40:53 +0000 (UTC) Cc: Stefan Monnier , "Emacs Dev \[emacs-devel\]" To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 10 18:40:52 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O0djl-0004Yw-9G for ged-emacs-devel@m.gmane.org; Sat, 10 Apr 2010 18:40:49 +0200 Original-Received: from localhost ([127.0.0.1]:42197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0djk-0004Ar-ND for ged-emacs-devel@m.gmane.org; Sat, 10 Apr 2010 12:40:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0djf-0004Ak-8Z for emacs-devel@gnu.org; Sat, 10 Apr 2010 12:40:43 -0400 Original-Received: from [140.186.70.92] (port=49660 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0dje-0004Ac-1e for emacs-devel@gnu.org; Sat, 10 Apr 2010 12:40:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0djc-0001Ef-OY for emacs-devel@gnu.org; Sat, 10 Apr 2010 12:40:41 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:57516) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0djc-0001EU-JY for emacs-devel@gnu.org; Sat, 10 Apr 2010 12:40:40 -0400 Original-Received: from [87.198.54.207] (87-198-54-207.ptr.magnet.ie [87.198.54.207]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 06D75955D; Sat, 10 Apr 2010 17:40:38 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) In-Reply-To: <4BC0A2EC.3060807@swipnet.se> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123443 Archived-At: Jan Dj=E4rv wrote: > You guys seem to think that tabs are just extra buttons to be pressed. = =20 > In Gtk+ they are not. When you press on a tab an whole new Gtk widget=20 > (with associated X window) covering the whole frame is switched in. So= =20 > the old contents is not shown.=20 This I think is why I liked the idea of whole-emacs-frames being "in"=20 gtk tab notebooks rather than vice-versa. So what are the tab notebooks=20 "in" from the emacs perspective? It doesn't matter, some sort of=20 transient thingy created and destructed on demand - doesn't really need=20 to be visible to the emacs lisp side, since the x11-level window manager=20 plus the outer gtk notebook layer is acting as the "window manager"=20 level layer to emacs frames. OTOH - can one fudge a gtk notebook with funny dimensions and catch the tab change event? i.e. rather than putting the old contents "truly"=20 in the tab notebook _______________ | \___\_______| |+-------------+| || || || || |+-------------+| |_______________| fake it with a zero-sized content of each tab, and just put the contents=20 next to it? _______________ |___\___\_______| +---------------+ | | | | +---------------+ There might be fugliness problems, of course.