want to capture a mouse click in an Entry



I have an gtk_entry which normally holds some text, and i would like
to capture clicks in the entry.

More exactly, i would like to capture a mouse click, and then do
something to the text in the entry depending on what modifier keys are
held when the click is made.

I've been looking through the documentation
https://developer.gnome.org/gtk3/stable/GtkEntry.html
https://developer.gnome.org/gtk3/stable/GtkWidget.html
and i don't see anything obvious, like would be the case for a button,
for example.

For reference, the corresponding task for html/javascript would be
nothing more than assigning an onclick attribute, i think, so it would
seem like something that shouldn't be too hard to do? (??)

Anyhow, thanks in advance for any kind of info.

dan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]