From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19672 invoked by alias); 11 Aug 2003 00:35:27 -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 19665 invoked from network); 11 Aug 2003 00:35:26 -0000 Received: from unknown (HELO snoopy.pacific.net.au) (61.8.0.36) by sources.redhat.com with SMTP; 11 Aug 2003 00:35:26 -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.4) with ESMTP id h7B0ZO0J004025 for ; Mon, 11 Aug 2003 10:35:24 +1000 Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h7B0ZOCh001753 for ; Mon, 11 Aug 2003 10:35:24 +1000 (EST) Received: from localhost (ppp28.dyn228.pacific.net.au [203.143.228.28]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h7B0ZJPt020871 for ; Mon, 11 Aug 2003 10:35:22 +1000 (EST) Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19m0Wz-0002Du-00; Mon, 11 Aug 2003 10:27:25 +1000 To: guile-gtk@sources.redhat.com Subject: idle priority defines From: Kevin Ryde Mail-Copies-To: never Date: Mon, 11 Aug 2003 00:35:00 -0000 Message-ID: <87d6fd11jn.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-q3/txt/msg00041.txt.bz2 I propose to make GTK_PRIORITY_DEFAULT etc available in variables, * gdk-support.c (sgtk_init_gdk_support): Add gdk-priority-events. * gtk-support.c (sgtk_init_gtk_support): Add gtk-priority-redraw gtk-priority-resize, gtk-priority-high, gtk-priority-internal, gtk-priority-default, gtk-priority-low. and use it for, * gtk-1.2/gtk.scm (gtk-idle-add): Correction, use gtk-priority-default as per C function, not 0. I guess GTK_PRIORITY_DEFAULT etc are deprecated in favour of G_PRIORITY stuff, but I think they may as well exist while they're present at the gtk level, since we don't have an actual glib module. scm_c_define ("gtk-priority-default", scm_int2num (GTK_PRIORITY_DEFAULT)); scm_c_define ("gtk-priority-high", scm_int2num (GTK_PRIORITY_HIGH)); scm_c_define ("gtk-priority-internal", scm_int2num (GTK_PRIORITY_INTERNAL)); scm_c_define ("gtk-priority-low", scm_int2num (GTK_PRIORITY_LOW)); scm_c_define ("gtk-priority-redraw", scm_int2num (GTK_PRIORITY_REDRAW)); scm_c_define ("gtk-priority-resize", scm_int2num (GTK_PRIORITY_RESIZE));