Re: Gtk::window.present() doesn't always present
- From: Havoc Pennington <hp redhat com>
- To: Elijah Newren <newren gmail com>
- Cc: metacity-devel-list gnome org, gtkmm-list gnome org
- Subject: Re: Gtk::window.present() doesn't always present
- Date: Sat, 15 Jul 2006 19:20:47 -0400
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]