BTW the Gtkdialog Application Index is a really great resource but I'm linking to it from the Gtkdialog project page and I have to login to view it. Is that right?

No, it shouldn't be like that. It looks like that whole section of the forum is invisible if you are not logged in - someone must have set it up wrong.
Thanks, I'll PM Flash to see if it can be fixed._________________Do you know a good gtkdialog program? Please post a link here

glade_support.c is the interface between Glade and Gtkdialog. I had to update it to support the new comboboxtext widget, so it's something that has to be maintained even if there're only one or two application developers using it. Maybe we should specifically state that Glade support is deprecated.

Is there actually anybody developing with it?_________________Do you know a good gtkdialog program? Please post a link here

I have a version of partview that doesn't ... I even use bash to dynamically generate images; however, this did remind me of a feature that AFAIK has been missing ... the sliders[/quote]_________________Check out my github repositories. I may eventually get around to updating my blogspot.

[EDIT] Updated 2011-07-07 19:10 to support using unmatched default directive text as the default entry text.

This is very similar to the comboboxtext widget that I created a short while ago except that this:

includes an entry at index -1

emits a "changed" signal when typing within the entry in addition to selecting an item from the list

emits an "activate" signal when pressing the Enter key whilst the cursor is within the entry

defaults to index -1 (the entry) on initialisation which'll get overridden by the default directive or active tag attribute

sets unmatched default directive text as the default entry text

saves unique non-null entry text to the output file

<comboboxentry> widget example:

Code:

#!/bin/sh

# NOTE: This example requires at least gtkdialog-0.7.21 (please visit
# http://code.google.com/p/gtkdialog/). Additionally if you are using
# Puppy Linux then you may find that an historical version of gtkdialog
# already exists in /usr/sbin, and if that is the case then you should
# modify the shell variable below to point to the new gtkdialog binary.

My trusty old PIII 866MHz is in a coma and won't come out of it I've got a choice between rebuilding a PIV 2GHz with dodgy motherboard connections or using this slow PIII 650MHz that's been gathering dust in a corner, so I'm going to have to take a few days off, but I've started the GtkScales and they look really nice

[EDIT] Updated 2011-07-17 13:47 to support the "block-function-signals" custom tag attribute (the example scales with the markup use this).

Adding marks and markup (you'll need at least GTK+ 2.16 for this) is done via <item> directives (value | position | markup) and the markup is optional. For myself on my own computer (lupu-520) the vertical markup isn't rendered in the right place althought the marks are correct. The only time I've managed to get them drawn correctly was when adding them twice, the first set being wrong and the second not being able to be drawn again in the wrong place managed to go to the right place.

"range-min", "range-max", "range-step" and "range-value" are custom tag attributes that accept double precision floating point numbers. The GTK "digits" property specifies the number of decimal places that are displayed in the value.

To set the scale's value you can use the "range-value" custom tag attribute, the <default> directive, the <input> directive or the <input file> directive.

If you want to isolate signals originating from user widget manipulation from the refresh function then use the custom tag attribute block-function-signals/block_function_signals="true/yes/1".

Features Supported by Later Versions of GTK+
Some widget properties and features may be unavailable to you if you are using an older version of GTK+, but they will not prevent you from compiling and using Gtkdialog as Gtkdialog checks the user's version of GTK+ at compile time and removes support for unsupported properties and features to enable compilation against different GTK+ versions. Ultimately though, the features that the application developer chooses to implement and therefore the version of GTK+ that his application requires is not within my realm of operation.

2.16 for scale marks and markup.

<hscale> and <vscale> widgets example:

Code:

#!/bin/sh

# NOTE: This example requires at least gtkdialog-0.7.21 (please visit
# http://code.google.com/p/gtkdialog/). Additionally if you are using
# Puppy Linux then you may find that an historical version of gtkdialog
# already exists in /usr/sbin, and if that is the case then you should
# modify the shell variable below to point to the new gtkdialog binary.

Your new sliders are fabulous. I compiled in lucid and they work - the v and hsliders w/o annotation do not slide all the way, however, but I have to look at your code before concluding anything. Congratulations and thanks.

With kind regards,
vovchik

PS. I take it you got your motherboard problems sorted out. One of mine burnt out not so long ago, and when I took off the CPU fan I found wads of cat hair

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum