diff options
author | Tor Lillqvist <tml@novell.com> | 2008-03-02 19:51:00 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2008-03-02 19:51:00 +0000 |
commit | 7cd3da83002d7f98794e8e20a5c76d1bb7ee562c (patch) | |
tree | e5c30aaa0cf53cd44821d8908cc5d6b3f5b9395b /modules | |
parent | d9c245e137faae885e4fe82624a7b0624bce8f9e (diff) | |
download | gtk+-7cd3da83002d7f98794e8e20a5c76d1bb7ee562c.tar.gz |
Check that the widget is a GtkButton before casting.
2008-03-03 Tor Lillqvist <tml@novell.com>
* modules/engines/ms-windows/msw_style.c (draw_box): Check that
the widget is a GtkButton before casting.
svn path=/trunk/; revision=19690
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/engines/ms-windows/msw_style.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c index aabf8f8e70..9c11b75bfc 100755 --- a/modules/engines/ms-windows/msw_style.c +++ b/modules/engines/ms-windows/msw_style.c @@ -2017,8 +2017,8 @@ draw_box (GtkStyle *style, } } else if (is_toolbar_child (widget->parent) - || (GTK_RELIEF_NONE == - gtk_button_get_relief (GTK_BUTTON (widget)))) + || (!GTK_IS_BUTTON (widget) || + (GTK_RELIEF_NONE == gtk_button_get_relief (GTK_BUTTON (widget))))) { if (draw_tool_button (window, widget, style, x, y, width, height, state_type, area)) |