From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13645 invoked by alias); 29 Dec 2002 22:06:20 -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 13638 invoked from network); 29 Dec 2002 22:06:19 -0000 Received: from unknown (HELO sunny.pacific.net.au) (203.25.148.40) by 209.249.29.67 with SMTP; 29 Dec 2002 22:06:19 -0000 Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id gBTM67KR011293 for ; Mon, 30 Dec 2002 09:06:07 +1100 (EST) Received: from localhost (ppp19.dyn228.pacific.net.au [203.143.228.19]) by wisma.pacific.net.au with ESMTP id JAA16521 for ; Mon, 30 Dec 2002 09:06:05 +1100 (EST) Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 18SlZ2-0000aH-00; Mon, 30 Dec 2002 08:05:44 +1000 To: guile-gtk@sources.redhat.com Subject: GtkAdjustment setters From: Kevin Ryde Mail-Copies-To: never Date: Sun, 29 Dec 2002 14:06:00 -0000 Message-ID: <87adioh45k.fsf@zip.com.au> User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.1 (i386-debian-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2002-q4/txt/msg00026.txt.bz2 --=-=-= Content-length: 549 It'd be nice if there were setters for the GtkAdjustment fields. If I read the gtk doco right, it's normal for a program to mung them and call gtk_adjustment_changed when wanting a new page size or whatever. For the value field I guess there's gtk_adjustment_set_value, so perhaps there's no need to directly set that, but apparently it's valid to do so and later call gtk_adjustment_value_changed. I get some joy from the diff below, if this is the right way to go about it. * gtk-1.2.defs (GtkAdjustment): Add setters for the fields. --=-=-= Content-Disposition: attachment; filename=gtk-1.2.defs.adjustment-setter.diff Content-length: 606 --- gtk-1.2.defs.~1.5.~ 2002-12-08 04:41:47.000000000 +1000 +++ gtk-1.2.defs 2002-12-29 13:24:19.000000000 +1000 @@ -1085,12 +1085,12 @@ (define-object GtkAdjustment (GtkData) (fields - (float value) - (float lower) - (float upper) - (float step_increment) - (float page_increment) - (float page_size))) + (float value (setter #t)) + (float lower (setter #t)) + (float upper (setter #t)) + (float step_increment (setter #t)) + (float page_increment (setter #t)) + (float page_size (setter #t)))) (define-func gtk_adjustment_new GtkObject --=-=-=--