[Bug 35896] Use XDG directories

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Aug 27 13:43:51 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=35896

Xavier Claessens <xclaesse at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xclaesse at gmail.com

--- Comment #15 from Xavier Claessens <xclaesse at gmail.com> 2012-08-27 11:43:51 UTC ---
(In reply to comment #14)

> > + /* owned (gchar *) of account => (gpointer) boolean whether account
> > + * has changed and so needs to be written to disk. in reality the
> > + * value is always GUINT_TO_POINTER(TRUE) or the account is simply
> > + * absent. */
> > + GHashTable *accounts_modified;
> 
> It's (becoming) conventional to represent a set as a hash table (key => key).
> GLib 2.32 has some magic to make those a bit more space-efficient, even. See
> the GHashTable docs.

FWIW, you don't even have to know the key->key trick, just use
g_hash_table_add/contains()

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.



More information about the telepathy-bugs mailing list