From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1536 invoked by alias); 7 Sep 2003 23:09:13 -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 1511 invoked from network); 7 Sep 2003 23:09:12 -0000 Received: from unknown (HELO snoopy.pacific.net.au) (61.8.0.36) by sources.redhat.com with SMTP; 7 Sep 2003 23:09:12 -0000 Received: from mongrel.pacific.net.au (mongrel.pacific.net.au [61.8.0.107]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.4) with ESMTP id h87N9ABt018261 for ; Mon, 8 Sep 2003 09:09:11 +1000 Received: from localhost (ppp81.dyn228.pacific.net.au [203.143.228.81]) by mongrel.pacific.net.au (8.12.3/8.12.3/Debian-6.4) with ESMTP id h87N7dBC027122 for ; Mon, 8 Sep 2003 09:07:40 +1000 Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19w8eX-0000Vg-00; Mon, 08 Sep 2003 09:09:05 +1000 To: guile-gtk@sources.redhat.com Subject: todo gdkpixmap From: Kevin Ryde Mail-Copies-To: never Date: Sun, 07 Sep 2003 23:09:00 -0000 Message-ID: <87n0dgryb2.fsf@zip.com.au> User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q3/txt/msg00067.txt.bz2 I add a bit to the TODO file, * GdkPixmap should use gdk_pixmap_ref and gdk_pixmap_unref, not gdk_window_ref and gdk_window_unref. Likewise GdkBitmap. Although GdkPixmap and GdkWindow are the same pointer type (in gtk 1.2), the unref functions are not the same. gdk_pixmap_unref frees when the count drops to zero, gdk_window_unref doesn't and instead prints a warning about an undestroyed window reaching zero. Probably need to have GdkPixmap and GdkWindow as distinct boxed types, but allow either in a GdkDrawable parameter. Distinct types would allow tighter type checking of pixmap versus window in parameters too (for instance gdk_window_map shouldn't accept a pixmap). This gets easier in gtk 2, where all are GObjects.