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 629723 - ComboBox set_model() allow NULL
ComboBox set_model() allow NULL
Status: RESOLVED FIXED
Product: gnome-perl
Classification: Bindings
Component: Gtk2
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2010-09-14 23:28 UTC by Kevin Ryde
Modified: 2010-09-19 16:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch and test case (1.79 KB, patch)
2010-09-14 23:28 UTC, Kevin Ryde
committed Details | Review

Description Kevin Ryde 2010-09-14 23:28:10 UTC
Created attachment 170304 [details] [review]
patch and test case

ComboBox set_model() accepts NULL for no model in gtk 2.6, perhaps per attached.

I'm not sure whether to restrict the _ornull to 2.6 up.  It looks like it only provokes an g_assert() in 2.4 so wouldn't matter too much if it was made right for 2.6 and worry later about the previous.  I tried a #if with and without _ornull but it doubled up in the generated pod.