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 99242 - GConfmm: code cleanups, leak fixes.
GConfmm: code cleanups, leak fixes.
Status: RESOLVED FIXED
Product: gconfmm
Classification: Other
Component: general
git master
Other other
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-11-22 00:04 UTC by Tassos Bassoukos
Modified: 2011-01-16 23:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for ownership and list handling changes. (89.75 KB, patch)
2002-11-22 00:41 UTC, Tassos Bassoukos
none Details | Review
fix ownership of Entry::get_value(). (2.82 KB, patch)
2002-11-22 20:45 UTC, Tassos Bassoukos
none Details | Review

Description Tassos Bassoukos 2002-11-22 00:04:21 UTC
Attached is a patch that
 *) makes Gnome::Conf::Value gtkmmproc-generated.
 *) fixes the ownership problems in List_Helpers.
 *) modifies code to use Glib::SListHandle<T>
    for all GSList-related issues. (API-Break)
 *) makes many methods in Gnome::Conf::Client gtkmmproc-generated.
 *) wraps Gnome::Conf::ChangeSet.

Sorry for the big patch, but 
 a) 40% of it are removed files and 
 b) most of the changes relate to the different constructor
    semantics of CppType(CType *,bool take_copy). We now use
    the same semantics as the rest of Gnomemm.

The only major API-Break is the handling of the lists. The list-related
methods of CLient and Value take new parameters that are SListHandle-based.

Files removed: 
 gconf/gconfmm/list_conversion.h
 gconf/gconfmm/value.h
 gconf/gconfmm/value.cc

Files added (new):
 gconf/src/value.hg
 gconf/src/value.ccg
 gconf/src/changeset.hg
 gconf/src/changeset.ccg
 gconf/gconfmm/value_listhelpers.h
 gconf/gconfmm/setinterface.h
 gconf/gconfmm/setinterface.cc
Comment 1 Tassos Bassoukos 2002-11-22 00:41:34 UTC
Created attachment 12471 [details] [review]
Patch for ownership and list handling changes.
Comment 2 Murray Cumming 2002-11-22 15:05:43 UTC
After applying this patch:
When I run the client example, it segfaults when I type text into one
of the Entries. Does this happen for you also?
Comment 3 Tassos Bassoukos 2002-11-22 20:40:35 UTC
Guilty as charged. Seems that no matter how much you try, the first
one who see it will spot the error.

Attached is the fix. Inconsistent APIs...

On another note, the examples don't seem to be compiled by default.
Comment 4 Tassos Bassoukos 2002-11-22 20:45:32 UTC
Created attachment 12483 [details] [review]
fix ownership of Entry::get_value().
Comment 5 Murray Cumming 2002-11-22 23:26:21 UTC
Looks great. I remember now thinking about how ChangeSet and Client
should share an interface somehow.

The documentation is great, and better than the original GConf. I'm
glad that we have a new doxygen expert.
 
Applied with minor corrections to the english documentation and some
syntax corrections:
- The m4 macros don't need ; at the end.
- Please don't use tabs. Try to use 2 spaces per indent.
- Try to put a space after ,
- Try to put a space both sides of =

This style is not documented anywhere, but it is always best to try to
match the existing style in any file. Actually, the formatting
problems might not be part of your patch - they might have been there
already.

Thanks for taking the time to split the patches up. It was much easier
this way.