This is the mail archive of the
guile-gtk@sources.redhat.com
mailing list for the Guile project.
idle priority defines
- From: Kevin Ryde <user42 at zip dot com dot au>
- To: guile-gtk at sources dot redhat dot com
- Date: Mon, 11 Aug 2003 10:27:24 +1000
- Subject: idle priority defines
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));