Inspector: Protect against childless windows

This commit is contained in:
Timm Bäder 2015-08-26 11:54:01 +02:00
parent 7051c322f4
commit 571da2a8b3

View File

@ -405,10 +405,14 @@ draw_flash (GtkWidget *widget,
if (GTK_IS_WINDOW (widget))
{
GtkWidget *child = gtk_bin_get_child (GTK_BIN (widget));
/* We don't want to draw the drag highlight around the
* CSD window decorations
*/
gtk_widget_get_allocation (gtk_bin_get_child (GTK_BIN (widget)), &alloc);
if (child == NULL)
return FALSE;
gtk_widget_get_allocation (child, &alloc);
}
else
{