In order for the interpretor to know which row to use the second argument needs to be an integer. '0' means insert at the top of the list with -1 the bottom. In a pre-existing list, any other positive value in between will insert at the appropriate level. If the specified row is a value that exceeds the length of the list, the item will be appended to the end. The command returns the number of the row just inserted.
Finally, providing a non integer values will also result in appending the value to the bottom of the list unless an empty…
How time flies! I knew that I hadn't made one of this blog posts for some time but, didn't think that it such a long time ago. Well, some enhancements to the core modules has taken place although not too many. In a nutshell a couple of bug fixes and some enhancements to a few widget options. As usual latest code available from SourceForge.
2019-03: gnocl::label o new commands push/pull, synonyms for set and get, when label used as simpler status bar. gnocl::text o -onSelection will now be respond to selections made via the keyboard. gnocl::fileChooserButton o %d substitution string implemented for -onFileSet callbacks. gnocl::comboBox o renamed onChanged command to changed. o problems with -onPopup and -onPopulateMenu options now fixed. 2019-02 gnocl::fileChooserButton o new command clear, resets file selection to 'none'. o added -fileName (include full path in utf8) 2019-01 gnocl::comboBox …
Yesterday I made the spot decision to make the move from building Gnocl against the Gtk2+ libraries to Gtk3+. At the end of the day I got the bulk of the gnocl::window module running. This doesn't mean that the conversion process will be an easy journey, it won't. The current build of Gnocl has evolved over the years and contains many legacy calls to widgets, functions, structures and macros not longer supported in Gtk3+. The immediate effect is that much of the 'glitzy' stuff working on pixmaps no longer work. Its all a question of time!
This doesn't mean that the Gtk2+ distribution will be forgotten, it still forms the backbone of the project and will be supported till most the the conversion work has been done.
One of the greatest challenges is the lack of suitable documentation. For Gtk2+ there was always Krause's excellent book, but now the emphasis would appear to be upon creating chunks of builder xml code and embedding these as strings into C-sourcecode…
Comments