r1399@localhost: muntyan | 2005-12-16 04:48:43 -0600

Don't try to paint NULL
master
Yevgen Muntyan 2005-12-16 16:51:00 +00:00
parent c987690a5e
commit 8aee02d0d3
1 changed files with 2 additions and 1 deletions

View File

@ -1507,7 +1507,7 @@ moo_paned_expose (GtkWidget *widget,
gtk_container_propagate_expose (GTK_CONTAINER (paned),
paned->button_box, event);
if (GTK_WIDGET_DRAWABLE (GTK_BIN(paned)->child))
if (GTK_BIN(paned)->child && GTK_WIDGET_DRAWABLE (GTK_BIN(paned)->child))
gtk_container_propagate_expose (GTK_CONTAINER (paned),
GTK_BIN(paned)->child,
event);
@ -3601,6 +3601,7 @@ pane_window_delete_event (GtkWidget *window,
/* XXX gtk_widget_reparent() doesn't work here for some reasons */
/* shouldn't it work now, as I fixed GTK_NO_WINDOW flag? */
static void
reparent (GtkWidget *widget,
GtkWidget *old_container,