From b2c30ad95d9e6d06592da25cf1490be3510b7946 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sat, 28 Mar 1998 00:10:49 +0000 Subject: Don't clear the window on an expose event. On draws, just clear the Fri Mar 27 17:58:41 1998 Owen Taylor * gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear the window on an expose event. On draws, just clear the portion we are redrawing. * gdk/gdkfont.c (gdk_fontset_load): Corrected calculation of fontset ascent/descent. * gtk/gtkwidget.[ch]: Added new function to show a toplevel window and wait for it to be mapped, gtk_window_show_now () --- gtk/gtkhandlebox.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gtk/gtkhandlebox.c') diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c index 1e12f1a766..e0f44ceaea 100644 --- a/gtk/gtkhandlebox.c +++ b/gtk/gtkhandlebox.c @@ -620,8 +620,14 @@ gtk_handle_box_paint (GtkWidget *widget, width = widget->allocation.width; height = widget->allocation.height - DRAG_HANDLE_SIZE; } - - gdk_window_clear (hb->bin_window); + + if (!event) + gdk_window_clear_area (hb->bin_window, + area->x, + area->y, + area->width, + area->height); + gtk_draw_shadow (widget->style, hb->bin_window, GTK_WIDGET_STATE (widget), -- cgit v1.2.1