From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: how to find out when display property is deleted in C? Date: Mon, 12 May 2008 23:08:34 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1210623557 20998 80.91.229.12 (12 May 2008 20:19:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 May 2008 20:19:17 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 12 22:19:53 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 1JveKw-00048Z-Dc for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 22:09:31 +0200 Original-Received: from localhost ([127.0.0.1]:48917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JveKC-0001eR-7h for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 16:08:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JveK8-0001eF-Qm for emacs-devel@gnu.org; Mon, 12 May 2008 16:08:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JveK7-0001dx-1w for emacs-devel@gnu.org; Mon, 12 May 2008 16:08:40 -0400 Original-Received: from [199.232.76.173] (port=38557 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JveK6-0001du-Sv for emacs-devel@gnu.org; Mon, 12 May 2008 16:08:38 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]:49399) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JveK6-0007zS-Cf for emacs-devel@gnu.org; Mon, 12 May 2008 16:08:39 -0400 Original-Received: from HOME-C4E4A596F7 ([83.130.255.47]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K0R00HKLVAHQ7M0@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Mon, 12 May 2008 23:23:06 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 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:97045 Archived-At: > From: joakim@verona.se > Date: Mon, 12 May 2008 16:58:29 +0200 > Cc: emacs-devel@gnu.org > > But I need to remove the gtk widget from display the precise moment the > display property goes away, or there will be very awkward display bugs. > > As it is now, the widgets happily live on in the emacs window even after > their display property has been deleted. It looks very odd. Forgive me for chiming into a discussion I wasn't following about a subject that I'm mostly ignorant about, but: when the display property goes away, Emacs triggers a redisplay the next moment it doesn't have anything more important to do. That redisplay should supply you with an event to remove the gtk widgets, no? Just plug your widget-removing routines into the code that runs during redisplay.