Gtk_entry mouse click signal
Posted
by h4rp0
on Stack Overflow
See other posts from Stack Overflow
or by h4rp0
Published on 2010-01-14T10:15:44Z
Indexed on
2010/06/12
15:02 UTC
Read the original article
Hit count: 159
Hi, I want to do a g_signal_connect to capture a mouse click in a gtk_entry widget.
Something like this:
entry = gtk_entry_new ( );
gtk_box_pack_end ( GTK_BOX ( hBox ), entry, TRUE, TRUE, 1 );
gtk_widget_show ( entry );
// This is the one I'm not sure about
g_signal_connect ( GTK_OBJECT ( entry ), "????????????",
GTK_SIGNAL_FUNC ( EntryClicked ), entry );
I just can't seem to find it in the gtk documentation.
I've tried using the "focus-in-event", but it is not working as I spect.
Thanks for the assistance.
© Stack Overflow or respective owner