From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: embedding gtk widgets in a buffer Date: Sat, 10 May 2008 11:58:23 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210413774 27154 80.91.229.12 (10 May 2008 10:02:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 May 2008 10:02:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 10 12:03:31 2008 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.50) id 1JulvO-0001pH-93 for ged-emacs-devel@m.gmane.org; Sat, 10 May 2008 12:03:30 +0200 Original-Received: from localhost ([127.0.0.1]:44936 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Juluf-000506-PV for ged-emacs-devel@m.gmane.org; Sat, 10 May 2008 06:02:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Julub-0004zt-Pj for emacs-devel@gnu.org; Sat, 10 May 2008 06:02:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Julua-0004zg-Iy for emacs-devel@gnu.org; Sat, 10 May 2008 06:02:41 -0400 Original-Received: from [199.232.76.173] (port=41422 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Julua-0004zd-Fn for emacs-devel@gnu.org; Sat, 10 May 2008 06:02:40 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:51330 helo=gate.verona.se) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JuluX-0004B8-93; Sat, 10 May 2008 06:02:37 -0400 Original-Received: from chopper (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id m4AA2Tvs028289; Sat, 10 May 2008 12:02:31 +0200 In-Reply-To: (Richard M. Stallman's message of "Sat, 10 May 2008 04:55:10 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:96925 Archived-At: Richard M Stallman writes: > - create new instances of the widgets for every window the widget is > supposed to be shown. This is visualy appealing, but troublesome to > implement, at least if each widget is really going to look like its > counterpart in another window, especially for xembed. > > Would that work? In the case of xembed, can both widgets talk > to the same process and show the same output? No, in the case of xembed it would probably not work very well. > > - the selected window and other windows are not drawn the same way. The > selected window contains the real live widgets. The non-selected > windows show some kind of shadow copy of the widget, in the simplest > case a grey rectangle, more elaborately a bitmap copy of the widget at > the time the window selection switch was made. > > That ought to do the job, if it is possible to get the whole output. Just to clarify, the placeholder widgets in non-selected windows, would be placeholders, not live buttons. They wont become live again until that window is selected again. The placeholder widgets are a snapshot copy of the state the widgets had when they were live at that position. (It should be possible to update the placeholder widgets more often, but I wont start out with that premise) Im not quite sure if it would be posible to get a bitmap dump of any sort of widget either, xembed is again probably a problem. > I see a possible problem in the case where the widget is partially or > wholely scrolled off the screen. I had in mind getting the widgets to temporarily render into offscreen bitmaps. If that's at all possible, the clipping of the widget should not be a problem. -- Joakim Verona