diff options
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r-- | gtk/gtkstyle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 0c00b3e30..3469c74cd 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -659,6 +659,7 @@ gtk_style_realize (GtkStyle *style, GdkColormap *colormap) { g_return_if_fail (GTK_IS_STYLE (style)); + g_return_if_fail (GDK_IS_COLORMAP (colormap)); style->colormap = gdk_colormap_ref (colormap); style->depth = gdk_colormap_get_visual (colormap)->depth; |