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 690545 - Separator function's refcounting too hard to use
Separator function's refcounting too hard to use
Status: RESOLVED FIXED
Product: egg-list-box
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: egg-list-box-maint
egg-list-box-maint
Depends on:
Blocks: 689708
 
 
Reported: 2012-12-20 08:03 UTC by Bastien Nocera
Modified: 2013-07-01 13:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2012-12-20 08:03:50 UTC
This required the comment:
      /* Yes, this looks wrong, but it's a work around for the bad
       * refcounting in egg-list-box (and fixing that would require
       * changing every other user of it)
       */
In one of Giovanni's patches. We shouldn't have this problem.
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-01-02 16:07:33 UTC
Punting to the right component.
Comment 2 Alexander Larsson 2013-02-15 07:53:09 UTC
The API isn't super nice, but its not all that easy to figure out a new model that satisfies the requirements. Its especially tricky for C code where constructors return floating widgets but we need to return a real ref.
Comment 3 Emanuele Aina 2013-06-24 16:20:46 UTC
Ooi, does this still apply to GtkListBox? The way separators/headers are handled seems different enough that it should not be an issue there.
Comment 4 Alexander Larsson 2013-07-01 13:40:47 UTC
Yeah, this is fixed in gtklistbox.