Next: Example Programs, Previous: Known Bugs, Up: Top
The following functions are considered obsolete and are not recommended for use in new programs.
Return true if Guile Gtk is running as a standalone program. This is now always true.
In the past a gtk-guile executable existed and had an option to indicate that an interactive read-eval-print loop should be started, in which case
gtk-standalone?
returned#f
.
When running standalone (
gtk-standalone?
true), rungtk-main
and connect thedestroy
signal of top-widget togtk-exit
so the program will exit when that widget is destroyed. If not standalone, do nothing and return immediately.Since
gtk-standalone?
is now always true, an application can just as easily connect the signal and rungtk-main
itself.(gtk-signal-connect top-widget "destroy" gtk-exit) (gtk-main)