Re: want to capture a mouse click in an Entry
- From: Norbert de Jonge <mail norbertdejonge nl>
- To: gtk-app-devel-list gnome org
- Subject: Re: want to capture a mouse click in an Entry
- Date: Sun, 19 Feb 2017 01:44:50 +0100
I have an gtk_entry [...] and i would like to capture clicks
in the entry [...] depending on what modifier keys are held
You can use g_signal_connect (..., "button_press_event", G_CALLBACK
(Function), NULL); Then in Function, check if (event->button.state ==
GDK_SHIFT_MASK) {} else {}. Also do gtk_widget_grab_focus (widget);
in Function.
Best regards,
Norbert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]