public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* idle priority defines
@ 2003-08-11  0:35 Kevin Ryde
  0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2003-08-11  0:35 UTC (permalink / raw)
  To: guile-gtk

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));

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-11  0:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11  0:35 idle priority defines Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).