diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-03-28 00:10:49 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-03-28 00:10:49 +0000 |
commit | b2c30ad95d9e6d06592da25cf1490be3510b7946 (patch) | |
tree | 4d7a62ea8c8ff144031c9563920d18315bac782d /gtk/gtkhandlebox.c | |
parent | f2cfc17be8bb73ff93ead9bfe6973223de4a598c (diff) | |
download | gtk+-b2c30ad95d9e6d06592da25cf1490be3510b7946.tar.gz |
Don't clear the window on an expose event. On draws, just clear the
Fri Mar 27 17:58:41 1998 Owen Taylor <owt1@cornell.edu>
* 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 ()
Diffstat (limited to 'gtk/gtkhandlebox.c')
-rw-r--r-- | gtk/gtkhandlebox.c | 10 |
1 files changed, 8 insertions, 2 deletions
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), |