Posts

Showing posts from January, 2014

gnocl::richTextToolBar -working version ready...

Image
Not working on any academic research over the past few days has given me time to focus on completing the implementation of a simple pango/html rich text edit widget. GtkHtml was one route to take but this is being phased out in favour of WebkitGtk (besides, GtkHtml documentation of any work simply doesn't exist). After hacking together an editor using the webKitGtk, which itself is something of a work around, I modified the existing gnocl webkit package to offer all the basic functionality of a simple html doc editor. But, this required implementing Javascript calls in C procs which were then called through a Tcl front end! Apart from the package taking a second or two to load, I found that webkitGtk will tend to crash after a while. Not much use to me! My aim is to create markup strings which can also be used for display within Gtk+ widgets during run-time, i.e. marked up labels or list entries. As a glance through previous blog postings will show, I had already put together some…

New Year's Enhancements

Image
Given some extra time to the implementation of the gnocl::toolBar items. Whilst is is possible to pack buttons, toggles and radio buttons into the toolbar, the custom items offer better formatting and are stylistically 'correct'. As the resulting module source code was stretching into thousands of lines, the toolbar.c module was split and the code for creating the 'items' shifted into separate files. Here's summary of the recent changes:

2014-01:
    gnocl::toolbar
        o separated source code for the creation of toolbar items into
            individual modules.
        o -onToggled functionality now working properly for relevant
            items.
    gnocl::radioButton
        o added %p substitution strings
    gnocl::toggleButton
        o added %p %d subtitution strings
        o new option -data

Updated code available from sourceforge.