From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: GTK pixmap background support? Date: 18 Aug 2003 15:42:57 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <8F1738F1-CE74-11D7-BA9D-00039363E640@swipnet.se> Reply-To: Miles Bader NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061189168 20781 80.91.224.253 (18 Aug 2003 06:46:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2003 06:46:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Aug 18 08:46:07 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19odmI-0006R2-00 for ; Mon, 18 Aug 2003 08:46:06 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19odoY-0001Pj-00 for ; Mon, 18 Aug 2003 08:48:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19odkj-0003IC-UF for emacs-devel@quimby.gnus.org; Mon, 18 Aug 2003 02:44:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19odkO-0003Dh-VL for emacs-devel@gnu.org; Mon, 18 Aug 2003 02:44:08 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19odjs-0002DL-J1 for emacs-devel@gnu.org; Mon, 18 Aug 2003 02:44:07 -0400 Original-Received: from [210.143.35.52] (helo=TYO202.gate.nec.co.jp) by monty-python.gnu.org with esmtp (Exim 4.20) id 19odjL-0001Cy-Dd; Mon, 18 Aug 2003 02:43:03 -0400 Original-Received: from mailgate3.nec.co.jp (mailgate53.nec.co.jp [10.7.69.194]) by TYO202.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id h7I6h0d24949; Mon, 18 Aug 2003 15:43:00 +0900 (JST) Original-Received: from mailsv5.nec.co.jp (mailgate51.nec.co.jp [10.7.69.190]) by mailgate3.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id h7I6gxm15311; Mon, 18 Aug 2003 15:43:00 +0900 (JST) Original-Received: from edtmg01.lsi.nec.co.jp ([10.26.16.201]) by mailsv5.nec.co.jp (8.11.7/3.7W-MAILSV-NEC) with ESMTP id h7I6gxg11071; Mon, 18 Aug 2003 15:42:59 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) by edtmg01.lsi.nec.co.jp (8.9.3p2+3.2W/3.7W_EDC_Ver.1.0) with ESMTP id PAA08985; Mon, 18 Aug 2003 15:42:59 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.12.8/8.12.8/EDcg v2.01-mc/1046780839) with ESMTP id h7I6gvNH021292; Mon, 18 Aug 2003 15:42:57 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 755783723; Mon, 18 Aug 2003 15:42:57 +0900 (JST) Original-To: "Jan D." System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <8F1738F1-CE74-11D7-BA9D-00039363E640@swipnet.se> Original-Lines: 23 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16000 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16000 "Jan D." writes: > I have no solution to this. I disabled setting of a background pixmap > by GTK themes because of the problems you are seeing. I suspect you > need to look at the GTK (or rather GDK) code to see exactly what it > is doing, and how Emacs can work with it. > > In general you set a background pixmap with styles. If you look at > xg_create_frame_widgets (near the end) in gtkutil.c, you can see how > it is disabled. By setting bg_pixmap in a GtkStyle to a suitable > GdkPixmap, and the apply the style to the widget, you can set a > background pixmap for the GTK widget. Hmmm, I suppose I ought to look at what libvte does, since it also allows background pixmaps. My workaround of simply never using XClearArea works reasonably well, but there's occasionally a bit of flickering for large area scrolls (though I do set the gtk bg color to something `compatible' with the pixmap to reduce it as much as possible). -Miles -- Fast, small, soon; pick any 2.