For Edwin: gtk-widget-font, scm-layout-scroll-step, etc.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Thu, 24 Jun 2010 18:26:26 +0000 (11:26 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Thu, 8 Jul 2010 15:33:42 +0000 (08:33 -0700)
commit71a3f819ce966dd9d0464427a666861a4884d41f
tree6ab97304766ed4c53d55d678e70dadaa72a03702
parent496514c0db6767911e5cc410bf07903c2727a72b
For Edwin: gtk-widget-font, scm-layout-scroll-step, etc.

* doc/gtk/gtk.texinfo: Followed the example of ffi.texinfo.  Added
VERSION.  Changed name from "Users'" to "Reference" Manual.  Clarified
how to run the examples.

* src/Makefile.in: Use @FFIS@ to init FFIS, allowing gtk to be built
conditionally.  Install lib/conses.png only when the Gtk interface is
built.

* src/Setup.sh: The lib/lib/prgtkio.so symlink is no longer needed.

* src/configure.ac: Added support for a --with-gtk option, to
conditionally include Gtk.  Added --enable-debugging, needed in
microcode/achost.ac.

* src/gtk/.gitignore: Make git ignore the gtk-shim build byproducts.

* src/gtk/Includes/, src/gtk/gtk.cdecl: Added and deleted various
declarations.

* src/gtk/demo.scm: Renamed the event handler "demo-event-handler".
Added a call to gtk-widget-grab-focus.

* src/gtk/ed-ffi.scm: Added pango.scm.

* src/gtk/gobject.scm: Added punt-gc-cleanup, for alien objects that
can be explicitly destroyed as well as GCed.  Allow for C-enum values
that do not fit in a fixnum.  Treat them as integers.

* src/gtk/gtk-object.scm: Defined and used gtk-object-flags, despite
their being deprecated.  Added peek-gtk-adjustment, for debugging.
Added gtk-widget-queue-draw, -get-pango-context, -create-pango-layout,
-set-size-request.

Added gtk-widget-font, -bg-color, -fg-color, -base-color, and
-text-color, and their setters, mostly from scm-layout.scm.

Added gtk-scrolled-window-set-policy and -set-placement.

Replace guarantee-gtk-window with check-gtk-window.  Use
error:wrong-type-argument in the check-TYPE procedures.

Fixed the C types peeked by gtk-window-get-default-size.

* src/gtk/gtk.pkg: Added several new exports, and a new (gtk pango)
package.  Moved color and font support from (gtk layout) to (gtk
gtk-object).

* src/gtk/gtk.scm: Added rect-union!.  Use integer operators on pixel
coordinates and sizes.  Moved most of the Pango code to the new
pango.scm file.

* src/gtk/gtk.sf: Suppress option loading noise.  Syntax each file in
its respective package, as its dependencies require.

* src/gtk/hello.scm: Quiet warnings.  Punt call to error; keeping it
simple.  This code appears in the manual.

* src/gtk/main.scm: Punt private copy of ucode-primitive syntax
transformer.

* src/gtk/pango.scm: New, implementing <pango-layout> as a <gobject>.

* src/gtk/scm-layout.scm: Created a second, "detailed" trace level.
Allow logical device coordinates and sizes to be integers, not just
fixnums.  Added set-scm-layout-scroll-step! and scm-layout-realized?.
Init on-screen-area to an un(der)defined rect.  Adjust scrollbars only
when realized and necessary.

Moved the color support to gtk-object.scm.  None of it depends on
scm-layout anymore -- just gtk-widget.  Re-worked the
_get_modifier_style,modify,_modify_style abstraction to accommodate
set-rcstyle-font!.

Combined common scrolling code from set-scm-layout-scroll-pos!,
scm-layout-adjustment-value-changed.

Allow drawing-add-item! to splice in an item just under/before
another, given item.

Keep drawn-item changes (damage old area, move, damage new area)
thread-atomic, else another thread can interfere.

* src/gtk/thread.scm (kill-gtk-thread): Send ONE thread event, and
clear gtk-thread first.

* src/microcode/configure.ac: Put prgtkio.so on MODULE_TARGETS, not
_BASES.  The latter does too much.
24 files changed:
doc/gtk/gtk.texinfo
src/Makefile.in
src/Setup.sh
src/configure.ac
src/gtk/.gitignore [new file with mode: 0644]
src/gtk/Includes/gdkevents.cdecl
src/gtk/Includes/gtkwidget.cdecl
src/gtk/Includes/pango-context.cdecl
src/gtk/Includes/pango-font.cdecl
src/gtk/Includes/pango-layout.cdecl
src/gtk/demo.scm
src/gtk/ed-ffi.scm
src/gtk/gobject.scm
src/gtk/gtk-object.scm
src/gtk/gtk.cdecl
src/gtk/gtk.pkg
src/gtk/gtk.scm
src/gtk/gtk.sf
src/gtk/hello.scm
src/gtk/main.scm
src/gtk/pango.scm [new file with mode: 0644]
src/gtk/scm-layout.scm
src/gtk/thread.scm
src/microcode/configure.ac