Marijn van Vliet [Sat, 29 Jan 2011 13:43:55 +0000 (14:43 +0100)]
* Fixed garglk_set_reversevideo to use the new way styles are handled.
* GtkTextTags are no longer shared between GtkTextBuffers, as this
is not allowed.
Philip Chimento [Wed, 5 Jan 2011 19:19:50 +0000 (14:19 -0500)]
Fix stylehint size bug
The "size" stylehint should use the GtkTextTag "scale" property, not
the "size" property - this way, the relative size is independent of the
default font size. The bug was that the "size" property should be given
in Pango units, not points, but now the "size" property isn't used at
all.
P. F. Chimento [Tue, 23 Nov 2010 00:01:29 +0000 (01:01 +0100)]
Wrote chimara_glk_set_resource_load_callback()
Added a function for providing an alternate mechanism for loading
resources, as described in the Blorb specification, section 14. This
function allows the host program to specify a callback which the Glk
program will call when a resource is requested and no Blorb resource map
is loaded.
P. F. Chimento [Mon, 22 Nov 2010 23:50:26 +0000 (00:50 +0100)]
Fixed threading bug in graphics
flush_window_buffer() requests the GDK lock, but it was called with the
GDK lock already acquired in draw_image_common(). How this managed not
to freeze before, I don't know.
P. F. Chimento [Mon, 22 Nov 2010 20:54:41 +0000 (21:54 +0100)]
Fix crash when loading resource without a map
The Glk program now fails gracefully when trying to load an image
resource without having loaded a resource map first: it prints a warning
and doesn't load the image, instead of crashing.
P. F. Chimento [Sun, 21 Nov 2010 00:45:21 +0000 (01:45 +0100)]
Implemented interactive mode
The ChimaraGlk:interactive-mode property didn't do anything yet, but it
now disables paging when TRUE. When input scrolls off the screen, the
screen now scrolls down with it.
P. F. Chimento [Fri, 19 Nov 2010 21:55:32 +0000 (22:55 +0100)]
Added test case for crash in ChimaraIF::command
There is a gdk_threads_enter/leave missing somewhere, because using GTK
calls from the signal handler of the ChimaraIF::command signal causes an
X error.
P. F. Chimento [Wed, 17 Nov 2010 21:14:06 +0000 (22:14 +0100)]
Fixed buffers and grids sharing the same styles
Two separate text tags should be created, one for text buffers, the
other for grids. Otherwise they share each other's styles (i.e. reverse
video on text grids.)
P. F. Chimento [Wed, 17 Nov 2010 21:11:26 +0000 (22:11 +0100)]
Fewer unnecessary recompiles of git
Making the automatically-generated version.h depend on Makefile.am
instead of Makefile prevents git from being fully recompiled every time
configure is run.
P. F. Chimento [Sat, 13 Nov 2010 00:20:21 +0000 (01:20 +0100)]
Fixed memory management in styles
Added a free for the StyleSets that were leaked, and fixed a double
unref of text tags that was causing lots of warnings when closing the
widget. Also added a test case.
rodin [Tue, 11 May 2010 10:30:07 +0000 (10:30 +0000)]
More pager improvements. Pager now determines correctly which text is read by the user and which is not. Pager will automatically scroll past read text.
Fixed problem of player looking for CSS file in a hard-coded location.
Dug up a lot of other problems doing that:
* Moved style initialization to the constructor of ChimaraGlk
* Now styles are always initialized, so we don't have to keep track of
whether they are or not
* Moved style initialization and CSS parsing out of the Glk thread, into the
main GTK thread, since it's controlled by the widget API not the Glk API
* Removed the 'default-font-description' and 'monospace-font-description'
properties and their associated API
* Added API chimara_glk_set_css_to_default() [not implemented yet],
chimara_glk_set_css_from_file(), chimara_glk_set_css_from_string()
rodin [Sat, 6 Feb 2010 14:13:59 +0000 (14:13 +0000)]
Removed the requirement win->input_request_type == INPUT_REQUEST_NONE.
Requesting a conflicting input request will cancel the previous one and produce a warning
fliep [Tue, 2 Feb 2010 20:46:19 +0000 (20:46 +0000)]
Barf improvements -- the paging functionality should now be ready to move into the main program.
Both paging behaviors I mentioned are available for testing - see the #define constant at the top of the file.