From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11510 invoked by alias); 7 Jul 2003 22:29:39 -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 11502 invoked from network); 7 Jul 2003 22:29:38 -0000 Received: from unknown (HELO snoopy.pacific.net.au) (61.8.0.36) by sources.redhat.com with SMTP; 7 Jul 2003 22:29:38 -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 h67MTbZY010712 for ; Tue, 8 Jul 2003 08:29:37 +1000 Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h67MTaQg019060 for ; Tue, 8 Jul 2003 08:29:36 +1000 (EST) Received: from localhost (ppp112.dyn228.pacific.net.au [203.143.228.112]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h67MTZnh003671 for ; Tue, 8 Jul 2003 08:29:35 +1000 (EST) Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19ZeUD-0000eP-00; Tue, 08 Jul 2003 08:29:29 +1000 To: guile-gtk@sources.redhat.com Subject: gdk-window-get-geometry (was: texinfo documentation) References: <87llxd2c59.fsf@zip.com.au> <874r3lmifw.fsf@zip.com.au> <87of1tjjwy.fsf@zip.com.au> <87znldi1wl.fsf@zip.com.au> <87el2mmymo.fsf@zip.com.au> <87smr2lgge.fsf@zip.com.au> <873cixnwsz.fsf@zip.com.au> From: Kevin Ryde Mail-Copies-To: never Date: Mon, 07 Jul 2003 22:29:00 -0000 Message-ID: <87u19ym0mw.fsf@zip.com.au> User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2003-q3/txt/msg00003.txt.bz2 --=-=-= Content-length: 234 As previously mentioned, I propose to have * gdk-1.2.defs (gdk_window_get_geometry): Return multiple values per C function, not a rectangle. * gdk-support.c (gdk_window_get_geometry): Remove, no longer used. --=-=-= Content-Disposition: attachment; filename=gdk-1.2.defs.get-geom.diff Content-length: 511 --- gdk-1.2.defs.~1.37.~ 2003-07-03 11:01:30.000000000 +1000 +++ gdk-1.2.defs 2003-07-03 11:44:40.000000000 +1000 @@ -1151,9 +1151,13 @@ ((GdkWindow window) (GdkColormap colormap))) -(define-func gdk_window_get_geometry_interp - (SCM (values (depth))) ; returns rect +(define-func gdk_window_get_geometry + (none (values (x y width height depth))) ((GdkWindow window) + (int x) + (int y) + (int width) + (int height) (int depth))) (define-func gdk_window_set_geometry_hints_interp --=-=-= Content-Disposition: attachment; filename=gdk-support.c.get-geom.diff Content-length: 565 --- gdk-support.c.~1.24.~ 2003-06-19 11:03:47.000000000 +1000 +++ gdk-support.c 2003-07-07 17:00:00.000000000 +1000 @@ -865,15 +865,6 @@ return (guint32) ((GdkWindowPrivate*)window)->xwindow; } -SCM -gdk_window_get_geometry_interp (GdkWindow *window,gint *depth) -{ - gint x, y, w, h; - gdk_window_get_geometry (window, &x, &y, &w, &h, depth); - return scm_cons (scm_cons (SCM_MAKINUM (x), SCM_MAKINUM (y)), - scm_cons (SCM_MAKINUM (w), SCM_MAKINUM (h))); -} - void gdk_window_set_geometry_hints_interp (GdkWindow *window, gint min_width, --=-=-=--