Elijah Newren wrote:
> event. gtk_get_current_event_time() kind of hides whether there is a
> valid current event or not and people who use it tend to ignore
> whether they have a valid timestamp or a bogus one (GDK_CURRENT_TIME),
> and just use what it returns regardless.
>
Wouldn't it be correct to write:
int t = gtk_get_current_event_time();
if (t != GDK_CURRENT_TIME)
/* use the time */;
With the event route, it seems people need to do something like:
GdkEvent *event = gtk_get_current_event();
if (event != NULL) {
switch (event->type) {
case GDK_BUTTON_PRESS:
case GDK_KEY_PRESS:
...
}
Havoc
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list