The linux version of growl (notification) program is here: https://github.com/mattn/growl-for-linux. There is source there, so I will download it and see whether/how it compiles on my PI3 and post some results here.

I would compile it myself but am not great at compiling. Mind you there is a very nice set of demos on the raspberry pi website ... if it is just "make-c gtkdialog.h" I might be able to manage it . . .
https://projects.raspberrypi.org/en/projects/demo-programs

I managed to compile and install that growl in Tahr, but RP3 is proving more difficult. The problem is that the header files for openssl in the Raspbian repository (dev files) do not correspond with the biniaries installed. I am afraid I might bork my PI if I install the "recommended" fix to this problem and am still thinking of how to install the headers so that pkg-config knows about them and does not complain. I will get it to work eventually, I hope. I am not the first person to run into this problem....

What you need to know is that the default <action> of a radiobutton widget fires upon a "toggled" signal. So when you select Radiobutton2, Radiobutton2 is toggled from "false" state to "true" and at the same time Radiobutton1 is toggled from an initial "true" to "false", hence the <action>s of both radiobuttons are triggered. This would do what you intended:

I thought that RAD1 is a separate widget that you want to hide. Now I realize that it's the first radiobutton. I'm not sure if I understand the purpose. You want to hide the first radiobutton by clicking the second?

Quote:

...where do I put the "if true" logic?

Nowhere.
It seems that with this syntax the function is executed only when the status is "true". Your code

I thought that RAD1 is a separate widget that you want to hide. Now I realize that it's the first radiobutton. I'm not sure if I understand the purpose. You want to hide the first radiobutton by clicking the second?

Quote:

...where do I put the "if true" logic?

Nowhere.
It seems that with this syntax the function is executed only when the status is "true". Your code

Code:

<action function="hide">RAD1</action>

should work as intended.

Thanks for responding.

There was no purpose in hiding the first radiobutton. "RAD1" could be anything.

The problem remains. As you say,

Code:

<action function="hide">RAD1</action>

will fire on a toggle of state, but I only want it to fire when the state changes to true.

So, the question is, how do I put in the equivalent logic for "if true" for

Code:

<action function="hide">RAD1</action>

My previous example may have been unclear, so here it is again, to illustrate the problem:

Initially, Radiobutton1 is selected. If I click on Radiobutton2, then the text label becomes hidden. NOT what I want!

EDIT:
In Thunar's documentation for the radiobutton, he has stated this:

Quote:

This widget's actions can be conditionally executed (based upon its active state) by prepending its contents with if true or if false although 0.8.3 introduced a dedicated condition attribute which may be more suitable.

However, I cannot find anywhere how it can be done with the condition attribute.

EDIT2
Got it! Had to search outside the Puppy Forum, found the answer here:

I was pretty sure that multiple actions in a widget execute in their order of placement

They do, but these have to be multiple actions for the same signal.
All actions for the signal "button-release-event" are performed consecutively, and all actions for the (default) signal "toggled" are also performed consecutively. Which signal's actions are executed first depends on the signal, but as I mentioned here the "custom actions" are executed first and the "default actions" (means actions for which you don't need to explicitly specify a signal because a default signal has been defined, here the "toggled") are executed last. Looking at your example you see that this rule applies.

As for your preceding posts: I'll let it settle as you eventually find the answers to your own questions. You'll see that the "if true" and "if false" constructs are more useful than you think and that button signals for radio buttons seldom need to be taken care of.

.Last edited by MochiMoppel on Sat 27 Jan 2018, 08:54; edited 1 time in total

"i have a dream" where gtkdialog used like a desktop environment ... any ideas or possiblity solutions ? I think the gtk desklets is good stuff for clone more big DEs,same like gtk3 in ubuntu main distro ... but i not want use gtk3 just 2. i was look gtkbased DE thats the GPE environment , i was try install it , but need matchbox environment for managing windows , but when i try start its said not found display ... i try any display but cant start . Librarys are ok ..._________________-<(].K.u.L.u.S.z.[)>-Last edited by KuLuSz on Sat 27 Jan 2018, 08:42; edited 1 time in total

I managed to compile and install that growl in Tahr, but RP3 is proving more difficult. The problem is that the header files for openssl in the Raspbian repository (dev files) do not correspond with the biniaries installed. I am afraid I might bork my PI if I install the "recommended" fix to this problem and am still thinking of how to install the headers so that pkg-config knows about them and does not complain. I will get it to work eventually, I hope. I am not the first person to run into this problem....

With kind regards,
vovchik

Thanks Vovchik

I am happy to await your efforts. The RP3 is a great device. Really appreciate your efforts.

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