Gnocl Release 0.9.95

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

Bingle

<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:

http://pa-mcclamrock.com/thisisgnocl0992.gif

But I'm still not getting -onActivate to work under Gnocl 0.9.95:

http://pa-mcclamrock.com/isthisgnocl0995.gif

Any idea what the problem could be? Maybe some fault in how my 0.9.95 binary was compiled?


WJG (29/05/10) Have you tried recompiling?

D. McC 2010 May 29: I just did. I got no error messages, and I've got a brand-new gnocl.so that gives me a brand-new gnocl::entry widget--but -onActivate still doesn't work. Um . . . is there a next suggestion?

WJG A simple, question. What are you expecting -onActivate to do? Internally, the -onActivate option in Gnocl 0.9.92 is handled with a generic doOnCommand signal handler. the 0.9.94 version, on the other hand, has its own handler which enables the text content of the widget to be returned using the %t substitution string.

D. McC 2010 May 30: In the examples above, I'm expecting it to give me a gnocl::dialog box containing the specified text. Under Gnocl 0.9.92, it does; under 0.9.95, it doesn't. The text content of the gnocl::entry widget is arbitrary, and I'm not expecting it to be returned.

WJG I don't replicate your errors, I get exactly the behaviour that you are expecting.

D. McC 2010 May 31: OK, can you give me a link to download only your gnocl.so (0.9.95) binary, so I can see if it does the same on my system, and (if so) infer that something went wrong with the compiling in the ones that didn't work?

WJG Check your [email protected] inbox. Better still, make posts via the Gnocl Google Group. [L1 ]

D. McC 2010 Jun 1: Thanks, I just subscribed to the Google group, but either your e-mail bounced or there's a big delay in the message getting through. I've occasionally had trouble with messages bouncing from the locl.net address. If you don't mind, you could try one of my alternate addresses, dmcclamrock1 at gmail.com, or pa at pa-mcclamrock.com. Thanks!


D. McC 2010 Jun 1: Got it; -onActivate works; don't know what the problem was before. This makes it possible to use Gnocl 0.9.95 to run my third Gnocl app, WISH File Rusher 2010--GTK+ Edition (to be released as soon as I get done with a few last-minute details). Thanks!!

D. McC 2010 Jun 5: Update: last-minute details done; WISH File Rusher 2010--GTK+ Edition available from Pa Penguin's Icebox .