After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 100702 - gtk_widget_modify_fg + friends don't handle NULL as documented.
gtk_widget_modify_fg + friends don't handle NULL as documented.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.1.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-12-08 23:14 UTC by Jon Kåre Hellan
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jon Kåre Hellan 2002-12-08 23:14:13 UTC
The docs to gtk_widget_modify_fg, gtk_widget_modify_bg,
gtk_widget_modify_text, gtk_widget_modify_base and gtk_widget_modify_font
say that a NULL last argument will  undo the effect of previous calls to
the function.

However, they all have g_return_if_fail guards against NULL arguments in
this place.
Comment 1 Owen Taylor 2002-12-08 23:34:29 UTC
Sun Dec  8 18:28:51 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwidget.c (gtk_widget_modify_fg/bg/base/text/font):
        Remove left-over NULL checks that were preventing the
        NULL to "unmodify" feature from actually working.
        (#100702, Jon-Kare Hellan)