Basic Questions




I will accept RTFM as an answer since I'm not sure this wasn't covered
there. But I couldn't find it.

Suppose I have a preview.
1. How do I capture a mouse click? Is there a special event for that or do
I have to capture and press and a release? (How about double click? - I
believe I've seen an answer to this one.) If there is such an event then
how is that distinguished from a press+release?

2. It seems that sometimes I need gtk_widget_draw(preview, .) after a row
draw to refresh the preview and sometimes I don't. What's the rule here?

3. If I press the button and move the mouse then "motion_notify_event"
only fires once, unless I use gdk_window_get_pointer(preview->window, &x,&y, NULL);

Why?

Thanks a lot!

Pavel



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