0
votes

how do I get the x/y-coordinates of a left click in a Gtk StatusIcon?

This is my first GTK app and I'm stuck. Is there any way to get details about the last button event that occurred? Or is it possible to pass those details to the handler function when connect()ing the "activate" callback?

Greets, Philip

1

1 Answers

1
votes

Since the status icon isn't a widget, it's a bit roundabout. You might be able to pass in some kind of widget as part of the user parameter object and get the global mouse position on activate. See here on how you might.