mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +00:00
Inspector: Protect against childless windows
This commit is contained in:
parent
7051c322f4
commit
571da2a8b3
@ -405,10 +405,14 @@ draw_flash (GtkWidget *widget,
|
|||||||
|
|
||||||
if (GTK_IS_WINDOW (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
|
/* We don't want to draw the drag highlight around the
|
||||||
* CSD window decorations
|
* 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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user