# BUG in Gtk::Style

**URL:** <https://www.ruby-forum.com/t/bug-in-gtk-style/166063>\
**Category:** Ruby-Gnome 2\
**Created:** [April 21, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/bug-in-gtk-style/166063 "2009-04-21T15:11:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 21, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/bug-in-gtk-style/166063/1 "2009-04-21T15:11:53Z")

</div>

Hi,

it is not possible to pass nil as the detail-argument to many of the  
paint\_\* methods. The documentation claims that it is possible and also  
the C version allows to use NULL for this argument.

In gtk/src/rbgtkstyle.c all methods from top to style\_paint\_hline don’t  
support a nil argument and all below this point do.

Cheers, detlef

–  
[http://det.cable.nu](http://det.cable.nu)
