Added new GDK_NO_EXPOSE and GDK_VISIBILITY_NOTIFY events. They are needed

for the TV widget by Alan Cox and by the GtkXmHTML widget.

Only missing with respect to their Xlib counterparts are the
major_code and minor_code fields in the GdkEventNoExpose structure.
Does anyone need them for their code?

- Federico
This commit is contained in:
Arturo Espinosa
1997-12-26 08:54:12 +00:00
parent ed11431bdb
commit 6ceea7e635
5 changed files with 121 additions and 48 deletions

View File

@ -2285,7 +2285,10 @@ gdk_event_translate (GdkEvent *event,
g_print ("no expose:\t\tdrawable: %ld\n",
xevent->xnoexpose.drawable - base_id);
/* Not currently handled */
event->no_expose.type = GDK_NO_EXPOSE;
event->no_expose.window = window;
return_val = window_private && !window_private->destroyed;
break;
case VisibilityNotify:
@ -2308,7 +2311,25 @@ gdk_event_translate (GdkEvent *event,
break;
}
/* Not currently handled */
event->visibility.type = GDK_VISIBILITY_NOTIFY;
event->visibility.window = window;
switch (xevent->xvisibility.state)
{
case VisibilityFullyObscured:
event->visibility.state = GDK_VISIBILITY_FULLY_OBSCURED;
break;
case VisibilityPartiallyObscured:
event->visibility.state = GDK_VISIBILITY_PARTIAL;
break;
case VisibilityUnobscured:
event->visibility.state = GDK_VISIBILITY_UNOBSCURED;
break;
}
return_val = window_private && !window_private->destroyed;
break;
case CreateNotify: