From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7460 invoked by alias); 15 May 2003 23:19:31 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 7424 invoked from network); 15 May 2003 23:19:30 -0000 Received: from unknown (HELO snoopy.pacific.net.au) (61.8.0.36) by sources.redhat.com with SMTP; 15 May 2003 23:19:30 -0000 Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.3) with ESMTP id h4FNJAPc030023; Fri, 16 May 2003 09:19:10 +1000 Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h4FNJAQg016060; Fri, 16 May 2003 09:19:10 +1000 (EST) Received: from localhost (ppp33.dyn228.pacific.net.au [203.143.228.33]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h4FNJ8YZ021814; Fri, 16 May 2003 09:19:09 +1000 (EST) Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19GS04-000170-00; Fri, 16 May 2003 09:19:00 +1000 To: Marko Rauhamaa Cc: guile-gtk@sources.redhat.com Subject: Re: Completed GdkWindow; enhanced design References: From: Kevin Ryde Mail-Copies-To: never Date: Thu, 15 May 2003 23:19:00 -0000 In-Reply-To: (Marko Rauhamaa's message of "15 May 2003 00:50:58 -0700") Message-ID: <87n0hnhk7x.fsf@zip.com.au> User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q2/txt/msg00074.txt.bz2 Marko Rauhamaa writes: > > The GdkWindow user_data is either NULL (initially) or an SCM list. > The first element of the list is the SCM user data (or #f). The > remainder of the list consists of filter procedures. > > You will see that gdk_window_mark will simply return its user_data to > protect it against GC. Are you aware that gtk stores a widget (pointer) in the GdkWindow user_data? So for instance you can't assume a window obtained from gtk_widget_window will have an SCM in the user_data field. The gtk 2 docs suggest one should store only NULL or a widget, because the gtk event handler will expect that. The gtk 1.2 code looks like gtk_main_do_event and gtk_get_event_widget don't attempt any validation. (Presumably this issue must have shown up when you tested your changes, so I wonder if I've badly missed something.)