]> Pileus Git - ~andy/gtk/commit
overlay: do not to set uninitialized values in the main allocation
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 29 Feb 2012 17:21:59 +0000 (12:21 -0500)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 29 Feb 2012 17:26:02 +0000 (12:26 -0500)
commit170e8712e9bfe792da29d6a3d1fb7a71fbe17336
treeb41f5cdc7f5bcddb70b10a82d089b847f0f96d9e
parent421d27c8581ce3a986c13577bbc7bcbc9821cd4f
overlay: do not to set uninitialized values in the main allocation

gtk_widget_translate_coordinates() can fail in case the widget is not
realized or there's no common ancestor. Don't use the x/y values
returned by that method in that case, since their value is undefined.
gtk/gtkoverlay.c