]> Pileus Git - ~andy/gtk/commit
window: Only draw resize grip if its window exists
authorBenjamin Otte <otte@redhat.com>
Mon, 23 May 2011 13:46:59 +0000 (15:46 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 23 May 2011 13:56:09 +0000 (15:56 +0200)
commit97a8ff80cc22bdb5d11958f3264be6a2063fc7d7
tree8fedb56599c3c867412cc0f262fc12960068a7f2
parentf30efa77592131faddfa6fb16438d6ec0050d3ec
window: Only draw resize grip if its window exists

Don't rely on priv->resize_grip_visible as the code comment in the
variable declaration indicates.
This fixes warnings with GtkPlug, which can cause resize_grip_visible to
be TRUE but grid_window to be NULL - running tests/teststatusicon
reproduces this.

This broke with 7ef113ce56a75641175af31267e2075f634267e0
gtk/gtkwindow.c