Something I didn’t know, but about as useful as it gets.

I needed to detect if the tray icon is embedded, or looses it.
There is not a signal for that in GtkStatusIcon.
And I got the following tip:
You can connect a signal to a G::Objects property. Just bind a signal to: “notify:: ” in my case: “notify::embedded”.

Now I hopefully never forget.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>