]> Pileus Git - ~andy/gtk/commit
add _gtk_widget_get_aux_info_or_defaults()
authorHavoc Pennington <hp@pobox.com>
Sun, 5 Sep 2010 16:11:47 +0000 (12:11 -0400)
committerHavoc Pennington <hp@pobox.com>
Mon, 13 Sep 2010 01:47:10 +0000 (21:47 -0400)
commitcf68c2636a5b5ff71de764f7b3bd61e64cc26b81
tree4e03aae5023118e1caf7a347072c2ea66d1428ca
parentc29f0a13924daf7df1d6787ecba840e8a79e8b6f
add _gtk_widget_get_aux_info_or_defaults()

This is better than peeking aux info then testing != NULL
in several ways:
- it returns const aux info so if we don't create we can't write
- it ensures that the default we assume if aux_info is NULL is
  the same as the default we set if we've created the aux info
- it avoids typing in != NULL checks
gtk/gtkwidget.c