> 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
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
Thanks Paul,
I put the g_idle_add() in to join the thread. A better place for doing that.
Could move the widgets queue redraws from the timer there also. Probably a
better design. Some options I will have to consider. The timer is still needed
for updating the progress bar and status bar
You can call g_idle_add() and various related functions from a non-GTK
thread. This is easier and more reliable than using a timer. When your
other thread has finished some work, add an idle callback in the main
context. the idle callback should call gtk_queue_redraw() for the
appropriate
On 02/17/2017 08:26 PM, cecas...@aol.com wrote:
> David,
>
> I asked a question about this on the gtk-devel-list
>
> https://mail.gnome.org/archives/gtk-devel-list/2017-January/msg00018.html
>
> last month. A lot I didn't know about this. For UTF-8 it is a bit complicated
> even for English.