projects/chimara/chimara.git
12 years agoAdd custom renderer browser
Philip Chimento [Thu, 21 Jul 2011 20:58:05 +0000 (22:58 +0200)]
Add custom renderer

12 years agoAdded a browser view with fake library data
P. F. Chimento [Wed, 20 Jul 2011 22:09:04 +0000 (00:09 +0200)]
Added a browser view with fake library data

12 years agoMerge branch 'master' into browser
Philip Chimento [Sat, 16 Jul 2011 21:58:50 +0000 (23:58 +0200)]
Merge branch 'master' into browser

12 years agoPorted babeltest to libsoup
Philip Chimento [Sat, 16 Jul 2011 21:51:47 +0000 (23:51 +0200)]
Ported babeltest to libsoup

12 years agoMake sure PLUGINDIR is defined
Philip Chimento [Sat, 16 Jul 2011 21:14:05 +0000 (23:14 +0200)]
Make sure PLUGINDIR is defined

12 years agoRemove deprecated usages
Philip Chimento [Sat, 16 Jul 2011 20:32:30 +0000 (22:32 +0200)]
Remove deprecated usages

But add #define's for compatibility on GTK < 2.18, so that it will still
compile on iLiad

12 years agoTook removed function out of docs
Philip Chimento [Thu, 7 Jul 2011 22:11:50 +0000 (00:11 +0200)]
Took removed function out of docs

12 years agoFix semicolon typo in seeking code
Philip Chimento [Wed, 6 Jul 2011 20:59:58 +0000 (22:59 +0200)]
Fix semicolon typo in seeking code

12 years agoFinished babeltest, it now does all of the following:
Marijn van Vliet [Sun, 3 Jul 2011 10:16:51 +0000 (12:16 +0200)]
Finished babeltest, it now does all of the following:
1) Extact metadata from file using babel
2) If no metadata was found lookup IFID on IFDB
3) Parse ifiction record
4) Store in database

12 years agoAdd browser actions and toolbar
P. F. Chimento [Wed, 22 Jun 2011 21:13:06 +0000 (23:13 +0200)]
Add browser actions and toolbar

12 years agoUpdate Glade file version to 2.20
P. F. Chimento [Wed, 22 Jun 2011 20:38:23 +0000 (22:38 +0200)]
Update Glade file version to 2.20

12 years agoRe-enable loading CSS file from preferences
P. F. Chimento [Wed, 22 Jun 2011 18:43:01 +0000 (20:43 +0200)]
Re-enable loading CSS file from preferences

12 years agoAdd chimara_app_foreach_game_window()
P. F. Chimento [Wed, 22 Jun 2011 18:20:25 +0000 (20:20 +0200)]
Add chimara_app_foreach_game_window()

12 years agoMake chimara_glk_get_tag_names() a class method
P. F. Chimento [Wed, 22 Jun 2011 18:19:53 +0000 (20:19 +0200)]
Make chimara_glk_get_tag_names() a class method

12 years agoFix const pointer warning
P. F. Chimento [Wed, 22 Jun 2011 18:18:57 +0000 (20:18 +0200)]
Fix const pointer warning

12 years agoOpen game as a method of ChimaraApp
P. F. Chimento [Wed, 22 Jun 2011 17:59:31 +0000 (19:59 +0200)]
Open game as a method of ChimaraApp

Maintain a list of opened games

12 years agoQuit program when browser window is closed
P. F. Chimento [Tue, 21 Jun 2011 21:30:31 +0000 (23:30 +0200)]
Quit program when browser window is closed

12 years agoGeneral code cleanup
P. F. Chimento [Tue, 21 Jun 2011 21:06:40 +0000 (23:06 +0200)]
General code cleanup

...and added copyright notices

12 years agoAvoid duplicating code
P. F. Chimento [Tue, 21 Jun 2011 20:26:18 +0000 (22:26 +0200)]
Avoid duplicating code

Move GtkBuilder and UI manager code into util.c; this now handles
looking for the proper location of the files depending on whether
DEBUG is defined or not.

12 years agoRemove conditional compilation of recent files
P. F. Chimento [Tue, 21 Jun 2011 15:48:31 +0000 (17:48 +0200)]
Remove conditional compilation of recent files

...and split chimara.menus into menus files for browser and player
windows. The conditional compilation can be removed because the bug on
OS X for which we introduced it doesn't exist anymore.

12 years agoImplement empty browser window
P. F. Chimento [Tue, 21 Jun 2011 15:43:07 +0000 (17:43 +0200)]
Implement empty browser window

12 years agoAdd skeleton ChimaraBrowser class
P. F. Chimento [Tue, 21 Jun 2011 07:34:25 +0000 (09:34 +0200)]
Add skeleton ChimaraBrowser class

12 years agoGet GUI mostly working again
P. F. Chimento [Tue, 21 Jun 2011 07:24:22 +0000 (09:24 +0200)]
Get GUI mostly working again

Add the window properties to the initializers, properly construct the
windows from the Glade file

12 years agoChimaraPrefs class, split up callbacks.c
P. F. Chimento [Sun, 19 Jun 2011 02:10:29 +0000 (04:10 +0200)]
ChimaraPrefs class, split up callbacks.c

12 years agoCompleted babeltest. It now opens the library.bdf in the current directory (or create...
Marijn van Vliet [Sun, 19 Jun 2011 13:33:09 +0000 (15:33 +0200)]
Completed babeltest. It now opens the library.bdf in the current directory (or creates it) and adds the metadata (if any) of the given story to it. Then it dumps the contents of the library.

12 years agoBuild babel before the tests. Use <stdlib.h> instead of <malloc.h>
Marijn van Vliet [Sun, 19 Jun 2011 12:17:35 +0000 (14:17 +0200)]
Build babel before the tests. Use <stdlib.h> instead of <malloc.h>

12 years agoMerge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara
Marijn van Vliet [Sun, 19 Jun 2011 10:29:03 +0000 (12:29 +0200)]
Merge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara

Conflicts:
libchimara/style.c

12 years agoWorking on babel/library support
Marijn van Vliet [Sun, 19 Jun 2011 10:20:51 +0000 (12:20 +0200)]
Working on babel/library support

12 years agoMade ChimaraApp class
P. F. Chimento [Sun, 19 Jun 2011 01:33:38 +0000 (03:33 +0200)]
Made ChimaraApp class

To do: ChimaraPreferences, ChimaraBrowser

12 years agoMade ChimaraPlayer class
P. F. Chimento [Sun, 19 Jun 2011 00:10:26 +0000 (02:10 +0200)]
Made ChimaraPlayer class

12 years agoMerge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara
Marijn van Vliet [Sat, 18 Jun 2011 20:55:23 +0000 (22:55 +0200)]
Merge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara

12 years agoWhen the cursor is not on the input prompt, return it there when the user start typin...
Marijn van Vliet [Sat, 18 Jun 2011 20:55:12 +0000 (22:55 +0200)]
When the cursor is not on the input prompt, return it there when the user start typing a command.

12 years agoKeep an EOF mark for memory streams
P. F. Chimento [Sat, 18 Jun 2011 20:45:11 +0000 (22:45 +0200)]
Keep an EOF mark for memory streams

Seeking to seekmode_End in a memory stream should move relative to
the last written position in the buffer, not the end of the memory
buffer. This brings the behavior of memory streams into line with
what would happen in a file stream.

Fixes #30.

12 years agoFix obscure C stdio bug
P. F. Chimento [Sat, 18 Jun 2011 19:59:33 +0000 (21:59 +0200)]
Fix obscure C stdio bug

You cannot switch between reading and writing a file stream without a
call to fseek() in between. This borrows Andrew Plotkin's solution of
keeping track of what the last operation was and switching if
necessary.

Fixes #34, together with [743391de].

12 years agoAdd tests for fseek problem
P. F. Chimento [Sat, 18 Jun 2011 19:19:02 +0000 (21:19 +0200)]
Add tests for fseek problem

12 years agoAvoid const string allocation/free
P. F. Chimento [Sat, 18 Jun 2011 19:18:46 +0000 (21:18 +0200)]
Avoid const string allocation/free

12 years agoC stdio trickery for read/write mode
P. F. Chimento [Sat, 18 Jun 2011 19:16:57 +0000 (21:16 +0200)]
C stdio trickery for read/write mode

As pointed out in the new version of the Glk spec, when opening a file
for appending, you cannot seek in it. We must open the file for
appending, to make sure it is created, then close it and reopen it
for read/writing.

Fixes part of #34.

12 years agoEliminate warning in plugin-loader
P. F. Chimento [Sat, 18 Jun 2011 19:16:26 +0000 (21:16 +0200)]
Eliminate warning in plugin-loader

12 years agoFix read count of glk_get_line_stream(_uni)
P. F. Chimento [Sat, 18 Jun 2011 16:51:57 +0000 (18:51 +0200)]
Fix read count of glk_get_line_stream(_uni)

Newline was not included in read count. Fixes #29

12 years agoFixed documentation typo
P. F. Chimento [Sat, 18 Jun 2011 16:32:31 +0000 (18:32 +0200)]
Fixed documentation typo

12 years agoNicer default color for textgrids
Marijn van Vliet [Sat, 18 Jun 2011 16:44:45 +0000 (18:44 +0200)]
Nicer default color for textgrids

12 years agoFixed #31
Marijn van Vliet [Sat, 18 Jun 2011 16:44:19 +0000 (18:44 +0200)]
Fixed #31

12 years agoRemoved some debug output
Marijn van Vliet [Sat, 18 Jun 2011 16:15:39 +0000 (18:15 +0200)]
Removed some debug output

12 years agoMerge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara
Marijn van Vliet [Sat, 18 Jun 2011 16:12:23 +0000 (18:12 +0200)]
Merge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara

12 years agoFixed #20
Marijn van Vliet [Sat, 18 Jun 2011 16:12:14 +0000 (18:12 +0200)]
Fixed #20

12 years agoFix accelerator keys
P. F. Chimento [Sat, 18 Jun 2011 14:10:22 +0000 (16:10 +0200)]
Fix accelerator keys

12 years agoMerge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara
Marijn van Vliet [Sat, 18 Jun 2011 13:22:31 +0000 (15:22 +0200)]
Merge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara

12 years agoFixed setting of proportional font in textgrids. Fixed text tag priorities, ticket #32
Marijn van Vliet [Sat, 18 Jun 2011 13:22:15 +0000 (15:22 +0200)]
Fixed setting of proportional font in textgrids. Fixed text tag priorities, ticket #32

12 years agoAvoid code duplication
P. F. Chimento [Sat, 18 Jun 2011 13:03:43 +0000 (15:03 +0200)]
Avoid code duplication

12 years agofixed glk_request_mouse_event to only generate one mouse event. When
Marijn van Vliet [Sat, 18 Jun 2011 10:22:57 +0000 (12:22 +0200)]
fixed glk_request_mouse_event to only generate one mouse event. When
another mouse event is desired, glk_request_mouse_event must be called
again.

12 years agoMerge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara
Marijn van Vliet [Sat, 18 Jun 2011 09:30:45 +0000 (11:30 +0200)]
Merge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara

12 years agoProgress in abolisching usage of font-desc in GtkTextTags.
Marijn van Vliet [Sat, 18 Jun 2011 09:30:05 +0000 (11:30 +0200)]
Progress in abolisching usage of font-desc in GtkTextTags.

12 years agoDon't need to mkdir m4 anymore
P. F. Chimento [Mon, 13 Jun 2011 21:31:32 +0000 (23:31 +0200)]
Don't need to mkdir m4 anymore

...because it's now in git

12 years agoAdd non-generated Vala binding
P. F. Chimento [Mon, 13 Jun 2011 12:59:54 +0000 (14:59 +0200)]
Add non-generated Vala binding

12 years agoAdd destroy notify parameter...
P. F. Chimento [Mon, 13 Jun 2011 12:27:55 +0000 (14:27 +0200)]
Add destroy notify parameter...

...to resource load callback. This is for making APIs for programming
languages where resources are managed automatically.

12 years agoAdd introspection annotations
P. F. Chimento [Mon, 13 Jun 2011 12:18:17 +0000 (14:18 +0200)]
Add introspection annotations

12 years agoAdd introspection to build process
P. F. Chimento [Mon, 13 Jun 2011 12:17:28 +0000 (14:17 +0200)]
Add introspection to build process

So that the build generates a GObject Introspection Repository from
which we can automatically generate bindings for other programming
languages!

12 years agoUpdate libtool invocation in configure
P. F. Chimento [Mon, 13 Jun 2011 11:50:21 +0000 (13:50 +0200)]
Update libtool invocation in configure

12 years agoEnable automatic generation of .gitignore
P. F. Chimento [Wed, 8 Jun 2011 20:46:32 +0000 (22:46 +0200)]
Enable automatic generation of .gitignore

Using git.mk in toplevel dir

12 years agoTrying to apply correct styles when recalling history. See #32
Marijn van Vliet [Sun, 5 Jun 2011 18:51:17 +0000 (20:51 +0200)]
Trying to apply correct styles when recalling history. See #32

12 years agoFix (most) UniCaseTest failures (fix #27)
P. F. Chimento [Sat, 7 May 2011 22:18:58 +0000 (00:18 +0200)]
Fix (most) UniCaseTest failures (fix #27)

Upper- or lowercasing Unicode strings is not possible by mapping one
character to one character in each case, in contradiction of what the
GLib functions g_unichar_tolower() and g_unichar_toupper() would seem
to suggest. The casing operations now operate on the whole string.

Unfortunately, this introduces a new bug, #28, since there is no
title-casing function in GLib that allows for the title-case of a
character to be longer than one character.

12 years agoFix glulxercise / glk unit test failures (fix #26)
P. F. Chimento [Sat, 7 May 2011 21:18:40 +0000 (23:18 +0200)]
Fix glulxercise / glk unit test failures (fix #26)

In the "Glk" test in the Glulxercise suite, the evtype_None returned
from glk_select_poll() should have all its unused fields zeroed.

12 years agoUpdate Glulxercise unit tests
P. F. Chimento [Wed, 4 May 2011 15:03:21 +0000 (17:03 +0200)]
Update Glulxercise unit tests

...to Andrew Plotkin's latest version

13 years agoMake use of more Automake silent rules
P. F. Chimento [Sun, 1 May 2011 14:44:45 +0000 (16:44 +0200)]
Make use of more Automake silent rules

Add $(AM_V_GEN) to shut up Automake while generating some source
files.

13 years agoImplement line terminators for text grids
P. F. Chimento [Sun, 1 May 2011 14:37:11 +0000 (16:37 +0200)]
Implement line terminators for text grids

This completes the 0.7.2 Glk specification, closing #2.

13 years agoFixed grid line input bug introduced in [9f52ac]
P. F. Chimento [Sun, 1 May 2011 14:30:21 +0000 (16:30 +0200)]
Fixed grid line input bug introduced in [9f52ac]

The window buffer of a text grid must be flushed before line input
begins; line input replaces part of the text with a widget (GtkEntry)
so if the buffer is flushed during, then it overwrites the widget,
deleting it, and causing a crash.

13 years agoMerge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara
Marijn van Vliet [Wed, 27 Apr 2011 12:00:43 +0000 (14:00 +0200)]
Merge branch 'master' of ssh://git.stderr.nl/projects/chimara/chimara

13 years agoAdded a useful dtrace script for listing all GLK calls made
Marijn van Vliet [Wed, 27 Apr 2011 11:59:50 +0000 (13:59 +0200)]
Added a useful dtrace script for listing all GLK calls made

13 years agoRefinement of line terminators
P. F. Chimento [Tue, 26 Apr 2011 21:30:03 +0000 (23:30 +0200)]
Refinement of line terminators

Handle line terminator key being pressed when cursor is in the middle
of the input line

13 years agoLine terminators in text buffer windows
P. F. Chimento [Tue, 26 Apr 2011 21:05:35 +0000 (23:05 +0200)]
Line terminators in text buffer windows

13 years agoFix bug in line input echoing
P. F. Chimento [Mon, 25 Apr 2011 19:05:35 +0000 (21:05 +0200)]
Fix bug in line input echoing

Line echo status wasn't changed when requesting unicode line input

13 years agoMinimum implementation of line terminators
P. F. Chimento [Mon, 25 Apr 2011 19:04:18 +0000 (21:04 +0200)]
Minimum implementation of line terminators

The function works, but no keys are allowed as line terminators. Prints
a warning when ignoring disallowed line terminators.

13 years agoUpdate docs for window borders
P. F. Chimento [Thu, 21 Apr 2011 10:55:30 +0000 (12:55 +0200)]
Update docs for window borders

13 years agoImplement border/noborder window flags
P. F. Chimento [Thu, 21 Apr 2011 10:13:03 +0000 (12:13 +0200)]
Implement border/noborder window flags

13 years agoDon't fail on unrecognized split method
P. F. Chimento [Thu, 21 Apr 2011 09:52:16 +0000 (11:52 +0200)]
Don't fail on unrecognized split method

If glk_window_open() gets unrecognized bits in the method argument, it
should give a warning instead of failing to create the window.

13 years agoTurn on window border in Glulxercise
P. F. Chimento [Wed, 20 Apr 2011 15:48:21 +0000 (17:48 +0200)]
Turn on window border in Glulxercise

To test the window border hints, window borders should be turned on
in Glulxercise.

13 years agoLine input echo won't affect current request
P. F. Chimento [Wed, 20 Apr 2011 15:36:03 +0000 (17:36 +0200)]
Line input echo won't affect current request

When turning line input echoing on or off, the window's currently
active line input request should be unaffected, according to the spec.

13 years agoImplement line input echoing
P. F. Chimento [Wed, 20 Apr 2011 15:22:38 +0000 (17:22 +0200)]
Implement line input echoing

13 years agoDistinguish input in Glulxercise
P. F. Chimento [Wed, 20 Apr 2011 15:22:00 +0000 (17:22 +0200)]
Distinguish input in Glulxercise

Make the input style blue in the Glulxercise tester

13 years agoAdd new Glk Unix extension from CheapGlk
P. F. Chimento [Wed, 20 Apr 2011 15:20:47 +0000 (17:20 +0200)]
Add new Glk Unix extension from CheapGlk

There is a new function glkunix_stream_open_pathname_gen() that
supersedes glkunix_stream_open_pathname().

13 years agoImplement unicode normalization
P. F. Chimento [Wed, 20 Apr 2011 11:57:10 +0000 (13:57 +0200)]
Implement unicode normalization

Unicode decomposition and normalization are now implemented.

13 years agoSimplify gestalt checking code
P. F. Chimento [Wed, 20 Apr 2011 11:15:31 +0000 (13:15 +0200)]
Simplify gestalt checking code

13 years agoImplemented date/time Glk functions
P. F. Chimento [Wed, 20 Apr 2011 11:12:15 +0000 (13:12 +0200)]
Implemented date/time Glk functions

Mostly copied from Andrew Plotkin's CheapGlk implementation; should
be converted to use GDateTime (more portable) when it is feasible to
use GLib 2.26 on many platforms.

13 years agoUpdated Glulxercise unit tests to latest
P. F. Chimento [Tue, 19 Apr 2011 21:18:23 +0000 (23:18 +0200)]
Updated Glulxercise unit tests to latest

Hmmm, not all of them pass.

13 years agoMove the gestalt_DateTime selector documentation
P. F. Chimento [Tue, 19 Apr 2011 16:32:08 +0000 (18:32 +0200)]
Move the gestalt_DateTime selector documentation

All the gestalt selectors should be documented in the same chapter.

13 years agoFix program listing
P. F. Chimento [Tue, 19 Apr 2011 16:26:29 +0000 (18:26 +0200)]
Fix program listing

13 years agoSimplify include comments
P. F. Chimento [Tue, 19 Apr 2011 16:05:37 +0000 (18:05 +0200)]
Simplify include comments

Put include comments in chimara-sections.txt so they apply to a whole
group of sections instead of typing out the include files in each
section individually.

13 years agoDocument all incomplete symbols
P. F. Chimento [Tue, 19 Apr 2011 15:49:52 +0000 (17:49 +0200)]
Document all incomplete symbols

Documentation is now fully complete!

13 years agoUpdated Gargoyle extensions and documentation
P. F. Chimento [Sun, 17 Apr 2011 10:19:33 +0000 (12:19 +0200)]
Updated Gargoyle extensions and documentation

Brought garglk.h to the latest revision of the Gargoyle extensions to
Glk - removed garglk_set_line_terminators(), added
garglk_set_story_title(), and updated the documentation.

13 years agoUpdate Gargoyle interpreters to r548
P. F. Chimento [Sun, 17 Apr 2011 10:18:04 +0000 (12:18 +0200)]
Update Gargoyle interpreters to r548

Frotz was the only interpreter with changes.

13 years agoUpdated documentation to match API 0.7.2
P. F. Chimento [Thu, 14 Apr 2011 21:32:27 +0000 (23:32 +0200)]
Updated documentation to match API 0.7.2

The Glk API documentation in Chimara now matches the official
documentation, although not everything considered necessary by
Gtk-Doc is documented. Stubs added for new functions.

13 years agoUpdate to new Glk 0.7.2 code
P. F. Chimento [Thu, 14 Apr 2011 21:30:40 +0000 (23:30 +0200)]
Update to new Glk 0.7.2 code

Andrew Plotkin released new versions of glk.h, gi_dispa.c, and gi_dispa.h.

13 years agoMisc Garglk extensions documenting
P. F. Chimento [Thu, 14 Apr 2011 21:25:15 +0000 (23:25 +0200)]
Misc Garglk extensions documenting

13 years agoMisc documentation fixes
P. F. Chimento [Thu, 14 Apr 2011 21:24:22 +0000 (23:24 +0200)]
Misc documentation fixes

13 years agoGet rid of compile warning in error.c
P. F. Chimento [Tue, 5 Apr 2011 19:37:09 +0000 (21:37 +0200)]
Get rid of compile warning in error.c

13 years agoSet CSS file from preferences dialog
P. F. Chimento [Sun, 13 Mar 2011 19:36:56 +0000 (20:36 +0100)]
Set CSS file from preferences dialog

Now you can set a custom CSS file from the preferences dialog and it
will be remembered across runs of the program.

13 years agoFix null pointer bug
P. F. Chimento [Sun, 13 Mar 2011 19:35:55 +0000 (20:35 +0100)]
Fix null pointer bug

Fixed a null pointer access in chimara_glk_set_css_from_file() when
passing NULL as the error parameter.

13 years agoDeactivate CSS editor for now
P. F. Chimento [Sun, 13 Mar 2011 14:55:21 +0000 (15:55 +0100)]
Deactivate CSS editor for now

We should have the CSS editor controls grayed out until they actually do
something.

13 years agoMove construction to glade file
Philip Chimento [Sun, 13 Mar 2011 00:02:22 +0000 (01:02 +0100)]
Move construction to glade file

Do as much construction as possible in the glade file, instead of in
hand-written code. Removed use of GtkFixed widget.

13 years agoFinished preferred interpreters list
P. F. Chimento [Sat, 12 Mar 2011 10:54:07 +0000 (11:54 +0100)]
Finished preferred interpreters list

You can now select which interpreter should load which format by default,
in the last page of the preferences window.