check for clist !REALIZED. (draw_rows): bail out if the widget isn't
Fri Feb 13 19:08:51 1998 Tim Janik <timj@gimp.org> * gtk/gtkclist.c (check_exposures): check for clist !REALIZED. (draw_rows): bail out if the widget isn't drawable. (hadjustment_value_changed): (vadjustment_value_changed): bail out if clist isn't drawable. * gdk/gdk.c (graphics_expose_predicate): check for private != NULL. (gdk_event_get_graphics_expose): check for window != NULL.
This commit is contained in:
@ -642,6 +642,8 @@ graphics_expose_predicate (Display *display,
|
||||
XPointer arg)
|
||||
{
|
||||
GdkWindowPrivate *private = (GdkWindowPrivate *)arg;
|
||||
|
||||
g_return_val_if_fail (private != NULL, False);
|
||||
|
||||
if ((xevent->xany.window == private->xwindow) &&
|
||||
((xevent->xany.type == GraphicsExpose) ||
|
||||
@ -656,6 +658,8 @@ gdk_event_get_graphics_expose (GdkWindow *window)
|
||||
{
|
||||
XEvent xevent;
|
||||
GdkEvent *event;
|
||||
|
||||
g_return_val_if_fail (window != NULL, NULL);
|
||||
|
||||
XIfEvent (gdk_display, &xevent, graphics_expose_predicate, (XPointer)window);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user