WJG (07/04/10) The Gnocl development team are pleased to announce the release of Version 0.9.95. Over the past few months a wide range significant enhancements and additions have been made to the range of resources available. Perhaps the most significant of all these changes has been the inclusion of the ability to load both Builder and Glade XML UI description files from either disk or internal buffers. In order to allow Glade users to take advantage of all the Gtk+ widget and dialogues available, a number of additional widgets have been added which to accommodate the minor differences between the basic Gtk+ offerings and their feature rich Gnocl counterparts. Included too with this release is the implementation of the gnocl::pixBuf command for the manipulation of offscreen graphics..
NEW WIDGETS
gnocl::assistant
gnocl::ruler
gnocl::HRuler
gnocl::VRuler
gnocl::calendar
gnocl::curve
gnocl::gammaCurve
gnocl::acclelarator
gnocl::textBuffer
gnocl::colorWheel
NEW DIALOG OBJECTS
gnocl::fontSelectionDialog
gnocl::inputDialog
gnocl::fileChooser
gnocl::colorChooser
NEW OBJECT CLASS
gnocl::pixBuf
NEW COMMANDS
gnocl::builder
gnocl::glade
gnocl::inventory
gnocl::screen
gnocl::signalStop
gnocl::beep
gnocl::grab
gnocl::application
PERCENT STRINGS
new option "%?" denoting gnocl::pixBuf
NEW FEATURES
gnocl::window
new commands show hide new options -onFocusOut -onFocusIn -onActivateDefault -onActivateFocus -onFrameEvent -onKeysChanged -onSetFocus
gnocl::text
new commands getIndex lorem save load new options -buffer -doOnCutClipboard -doOnCopyClipboard -doOnPasteClipboard -text
gnocl::image
new commands turn flip
gnocl::drawingArea
new command option add
gnocl::aboutDialog
new options -visible
gnocl::dialog
new options -visible
gnocl::expander
new options -spacing -underline
gnocl::comboEntry
new options -entryWidth -widthChars
gnocl::entry
new command setPosition (problematic) new options -onInsertText -onKeyPress -onKeyRelease -align
gnocl::winfo
new sub-command geometry
BUG FIXES
gnocl::label
resolved problems with use of pango markup with the -text option
gnocl::aboutDialog
resolved problems associated with use of the close button failing to close the dialog.
General options
corrected problem with setting the -shadow option
WIDGET MODIFICATIONS
gnocl::box
changed default padding from GNOCL_PAD (8 pixels) to GNOCL_PAD_TINY (2 pixels)
gnocl::table
changed defaults for borderwidth and row spacing to to GNOCL_PAD_TINY
gnocl::menu
command popup enhanced to support exact positioning with x y.
D. McC 2010 Apr 17: Hi! I'm back, after some months with no time for programming, and I just downloaded gnocl-0.9.9.5.tar.gz--but, when I tried to untar it, I got an error message saying it wasn't in gzip format! Help!
bingle - 2010-04-17 18:05:57
<If you copy it as 0.9.95.tar.bz2, then it will extract.>
D. McC 2010 Apr 17: Correct. Um . . . so I wasn't supposed to assume that "tar.gz" meant "tar.gz"? :o( Anyway, now that it's extracted, I'll see if it will compile--after a bit of delay while I do some non-programming things.
WJG The file extension problems have been resolved.
D. McC 2010 May 28: After a bit of delay, I say . . . I took a close look at the contents of the extracted Gnocl 0.9.95 tarball and, lo and behold, I didn't have to compile anything! (Either that, or what I thought was a failed attempt at compiling, to judge from the error messages I got, was actually a success.) Inconspicuously tucked away among a bunch of .c and .h files were "gnocl.so" and "pkgIndex.tcl," which I've been using with some success on my Puppy Linux system--except for two non-successes, which appear to be bugs in 0.9.95 that weren't there in 0.9.92 (don't know about 0.9.93 and .94).
First, the "-onActivate" option for gnocl::entry widgets doesn't work with 0.9.95, but it does with 0.9.92.
Second, a button to invoke gnocl::fileChooser doesn't do anything with 0.9.95, but it works properly with 0.9.92.
I'd like to use the latest Gnocl version when feasible, but it isn't, so long as these problems aren't solved. I've been working on a Gnocl version of WISH File Rusher, but I really need it to make things happen when the user hits Enter with the focus on a gnocl::entry widget. I also need WISH Disc-Writer to display a file selector for the user to pick an ISO to burn to a CD or DVD.
WJG (29/05/10) Hi there, I'm glad to hear that you're trying out Gnocl 0.9.95. The issues that you mention are interesting and in part reflect some changes. Firstly, the -onActivate option for entry does work, and I'm suprised that you have it working under 0.9.92. Secondly, in order to comply with the needs of loading glade/builder XML UI files, the hard decision had to made to rename the pre-exising gnocl::fileChooser object to gnocl::fileChooserButton. Within the Gtk+ libraries these are two distinct objects which earlier versions of Gnocl didn't address. Assuming that you have the latest build installed, the following test script should provide exactly what you're looking for.
# basic Tcl/Gnocl Script #!/bin/sh \ exec tclsh "$0" "$@" package require Gnocl set ent1 [gnocl::entry -onActivate {puts ACTIVATE} ] ;# ie press the Enter key set fcb [gnocl::fileChooserButton] set box [gnocl::box] $box add $ent1 $box add $fcb gnocl::window -child $box
D. McC 2010 May 29: OK, gnocl::fileChooserButton works, and -onActivate does work under Gnocl 0.9.92:
But I'm still not getting -onActivate to work under Gnocl 0.9.95:
Any idea what the problem could be? Maybe some fault in how my 0.9.95 binary was compiled?