platform/upstream/gcr.git
13 years agoFix problem with doap file syntax
Stef Walter [Thu, 6 Oct 2011 11:16:22 +0000 (13:16 +0200)]
Fix problem with doap file syntax

13 years agoSplit the GCR and GCK libraries out of gnome-keyring split
Stef Walter [Thu, 6 Oct 2011 08:59:50 +0000 (10:59 +0200)]
Split the GCR and GCK libraries out of gnome-keyring

Commits prior to this commit will not build. To build
old releases of Gcr or Gck you should use the gnome-keyring
git module.

This module currently depends on: gtk+ >= 3.0, glib >= 2.28.0,
p11-kit >= 0.6, libgcrypt >= 1.2.2

Additionally it requires asn1Parser for building.

13 years agogcr: Make spinner on GcrImportButton actually spin
Stef Walter [Wed, 5 Oct 2011 09:56:11 +0000 (11:56 +0200)]
gcr: Make spinner on GcrImportButton actually spin

13 years agogcr: Fix build issues with gcr-icons.h header
Stef Walter [Wed, 5 Oct 2011 09:55:55 +0000 (11:55 +0200)]
gcr: Fix build issues with gcr-icons.h header

13 years agogcr: Properly get labels from the parser into the importer
Stef Walter [Wed, 5 Oct 2011 09:03:18 +0000 (11:03 +0200)]
gcr: Properly get labels from the parser into the importer

 * Pull in the labels seen by the parser, but not in the attributes
 * Fix issues supplementing when no login is required

13 years agogcr: Parse required attributes out of certificates
Stef Walter [Wed, 5 Oct 2011 09:02:44 +0000 (11:02 +0200)]
gcr: Parse required attributes out of certificates

 * PKCS#11 requires the CKA_SUBJECT, CKA_ISSUER and
   CKA_SERIAL_NUMBER in new certificate objects, so we parse
   them in the parser.

13 years agogcr: Use the home directory for the NSS icon
Stef Walter [Wed, 5 Oct 2011 09:00:58 +0000 (11:00 +0200)]
gcr: Use the home directory for the NSS icon

13 years agogcr: Stop gcr-viewer process correctly when Close is clicked
Stef Walter [Wed, 5 Oct 2011 08:26:54 +0000 (10:26 +0200)]
gcr: Stop gcr-viewer process correctly when Close is clicked

13 years agogcr: Rework how we get supplemental information for the import
Stef Walter [Wed, 5 Oct 2011 08:17:34 +0000 (10:17 +0200)]
gcr: Rework how we get supplemental information for the import

13 years agogcr: Fix PKCS#11 importer attribute cleanup before import
Stef Walter [Wed, 5 Oct 2011 07:14:14 +0000 (09:14 +0200)]
gcr: Fix PKCS#11 importer attribute cleanup before import

 * Add proper CKA_ID, CKA_DECRYPT, CKA_SIGN, CKA_SIGN_RECOVER
   CKA_UNWRAP, CKA_SENSITIVE, and CKA_PRIVATE attributes
 * Create pairs of keys and certificates, and import those
   first

13 years agogcr: Complete and make gcr_fingerprint_xxx functions public
Stef Walter [Wed, 5 Oct 2011 07:07:15 +0000 (09:07 +0200)]
gcr: Complete and make gcr_fingerprint_xxx functions public

 * These functions create consistent key fingerpints for
   public, private and certificates.

13 years agoegg: Fix parsing of unsigned integers in DER
Stef Walter [Tue, 4 Oct 2011 16:15:37 +0000 (18:15 +0200)]
egg: Fix parsing of unsigned integers in DER

 * When the unsigned integer had a high bit set, we would store/parse
   it incorrectly. We have to force these numbers to be unsigned so
   we prefix/strip an extra zero byte on the front.
 * Also make accessing raw and usg numbers in DER not have to copy
   the value, since these are often sensitive.

13 years agogcr: Import keys first when importing via PKCS#11
Stef Walter [Tue, 4 Oct 2011 14:42:48 +0000 (16:42 +0200)]
gcr: Import keys first when importing via PKCS#11

 * This is what some smartcards seem to require, an easy enough fix
   so just work around this problem.

13 years agogck: Include CKK_XXX values in debug output correctly
Stef Walter [Tue, 4 Oct 2011 14:42:28 +0000 (16:42 +0200)]
gck: Include CKK_XXX values in debug output correctly

13 years agogcr: Complete the PKCS#11 import dialog
Stef Walter [Tue, 4 Oct 2011 10:55:21 +0000 (12:55 +0200)]
gcr: Complete the PKCS#11 import dialog

 * Add GcrImportInteraction interface which importers
 * Hookup between non-GUI importers and import interaction
   isn't yet completely thought out.

13 years agogck: Add support for setting attributes in an array
Stef Walter [Tue, 4 Oct 2011 10:47:07 +0000 (12:47 +0200)]
gck: Add support for setting attributes in an array

 * Either change the attribute to the new value, or add an
   attribute if one doesn't exist.

13 years agogck: Integrate GTlsInteraction into libgck
Stef Walter [Mon, 3 Oct 2011 11:23:39 +0000 (13:23 +0200)]
gck: Integrate GTlsInteraction into libgck

 * Deprecate the GckModule signals which were used for password auth
 * Fire deprecated GckModule signals from a compat GTlsInteraction
 * Add some tests for this integration

13 years agogcr: Check that secret exchanged data has correct protocol prefix
Stef Walter [Sat, 1 Oct 2011 11:27:03 +0000 (13:27 +0200)]
gcr: Check that secret exchanged data has correct protocol prefix

 * This is for future backward compatibility, so when we have more
   than one protocol, we can be sure we can identify the old one.

13 years agogcr: Documentation fixes for secret exchange commits
Stef Walter [Sat, 1 Oct 2011 11:17:17 +0000 (13:17 +0200)]
gcr: Documentation fixes for secret exchange commits

13 years agoui: Use GcrSecretExchange for passing passwords to/from prompt
Stef Walter [Sat, 1 Oct 2011 11:07:38 +0000 (13:07 +0200)]
ui: Use GcrSecretExchange for passing passwords to/from prompt

 * And integrate this with our credential stuff inside of the
   dbus secret service prompts
 * Fix a bug in GcrSecretService if key already derived, and data
   is received.

13 years agogcr: More work on the GcrSecretExchange
Stef Walter [Sat, 1 Oct 2011 10:20:07 +0000 (12:20 +0200)]
gcr: More work on the GcrSecretExchange

 * Expose the concept of which protocol is being used although
   currently only one is supported.
 * Add virtual method hooks so all crypto stuff can be swapped
   out with other implementations.
 * Build, documentation and test fixes

https://bugzilla.gnome.org/show_bug.cgi?id=656955

13 years agogcr: Add documentation for GcrSecretExchange
Stef Walter [Tue, 23 Aug 2011 07:56:02 +0000 (09:56 +0200)]
gcr: Add documentation for GcrSecretExchange

https://bugzilla.gnome.org/show_bug.cgi?id=656955

13 years agogcr: Refactor GcrSecretExchange
Stef Walter [Sat, 20 Aug 2011 20:50:42 +0000 (22:50 +0200)]
gcr: Refactor GcrSecretExchange

 * Use the GcrSecretExchange object on both sides.
 * Allow exchange of multiple secrets, and in both directions.
 * Add tests

13 years agogcr: Implement GcrSecretExchange
Stef Walter [Wed, 10 Aug 2011 08:58:37 +0000 (10:58 +0200)]
gcr: Implement GcrSecretExchange

* Class which allows exchanging secrets over an unsecure or logged
   channel.
 * Does *NOT* protect against active attacks like MITM.

https://bugzilla.gnome.org/show_bug.cgi?id=656955

13 years agogcr: More documentation fixes
Stef Walter [Sat, 1 Oct 2011 09:56:20 +0000 (11:56 +0200)]
gcr: More documentation fixes

13 years agoFix up exported symbols for recent changes
Stef Walter [Sat, 1 Oct 2011 09:55:31 +0000 (11:55 +0200)]
Fix up exported symbols for recent changes

 * Including one symbol removal, but since this was added during
   this unstable cycle, no problem changing it.

13 years agogck: Fix more argument types
Stef Walter [Fri, 30 Sep 2011 07:50:39 +0000 (09:50 +0200)]
gck: Fix more argument types

 * and mark up introspection annotations on some more arrays

13 years agogck: More introspection tweaks, checking for parameters which allow none
Stef Walter [Thu, 29 Sep 2011 14:28:10 +0000 (16:28 +0200)]
gck: More introspection tweaks, checking for parameters which allow none

13 years agogcr: Annotate which types are being returned
Stef Walter [Thu, 29 Sep 2011 13:31:00 +0000 (15:31 +0200)]
gcr: Annotate which types are being returned

 * If the C function is returning a base type, then annotate
   what derived type is actually being returned.

13 years agogcr: Add gcr_viewer_widget_get_parser()
Stef Walter [Thu, 29 Sep 2011 13:29:11 +0000 (15:29 +0200)]
gcr: Add gcr_viewer_widget_get_parser()

 * This property returns the parser currently in use by the viewer widget

13 years agogck: Fix precondition in gck_object_from_handles
Stef Walter [Thu, 29 Sep 2011 13:26:36 +0000 (15:26 +0200)]
gck: Fix precondition in gck_object_from_handles

13 years agogcr: More introspection and documentation cleanup
Stef Walter [Thu, 29 Sep 2011 13:03:39 +0000 (15:03 +0200)]
gcr: More introspection and documentation cleanup

 * Tag proper transfer on return values
 * Use guchar * for arrays of bytes

13 years agogck: More introspection and documentation cleanup
Stef Walter [Thu, 29 Sep 2011 13:02:46 +0000 (15:02 +0200)]
gck: More introspection and documentation cleanup

 * In particular, use guchar * for arrays of bytes.

13 years agogck: Fix if _gck_debug was not called _gck_debugging doesn't work
Stef Walter [Thu, 29 Sep 2011 11:06:13 +0000 (13:06 +0200)]
gck: Fix if _gck_debug was not called _gck_debugging doesn't work

 * Initialize debugging in both _gck_debug and _gck_debugging

13 years agogck: Documentation, introspection, and header fixes
Stef Walter [Thu, 29 Sep 2011 10:49:17 +0000 (12:49 +0200)]
gck: Documentation, introspection, and header fixes

13 years agogck: Work around g-ir-scanner syntax problem
Stef Walter [Thu, 29 Sep 2011 08:07:06 +0000 (10:07 +0200)]
gck: Work around g-ir-scanner syntax problem

 * Separate typedef from structure declaration.

13 years agoGck: GckAttribute value field is a byte array
Stef Walter [Thu, 29 Sep 2011 08:06:41 +0000 (10:06 +0200)]
Gck: GckAttribute value field is a byte array

13 years agogck: Gck introspection doesn't depend on gtk
Stef Walter [Thu, 29 Sep 2011 08:02:16 +0000 (10:02 +0200)]
gck: Gck introspection doesn't depend on gtk

13 years agogcr: Complete introspection annotations for gcr library
Stef Walter [Wed, 28 Sep 2011 12:26:14 +0000 (14:26 +0200)]
gcr: Complete introspection annotations for gcr library

https://bugzilla.gnome.org/show_bug.cgi?id=655651

13 years agogck: Fix introspection warnings and complete introspection annotations
Stef Walter [Wed, 28 Sep 2011 12:24:43 +0000 (14:24 +0200)]
gck: Fix introspection warnings and complete introspection annotations

https://bugzilla.gnome.org/show_bug.cgi?id=655651

13 years agogcr: mark many fields as private
Evan Nemerson [Sat, 30 Jul 2011 19:32:59 +0000 (12:32 -0700)]
gcr: mark many fields as private

13 years agogcr: add GObject introspection support
Evan Nemerson [Sat, 30 Jul 2011 19:31:49 +0000 (12:31 -0700)]
gcr: add GObject introspection support

https://bugzilla.gnome.org/show_bug.cgi?id=655651

13 years agogcr: Fix logic in GcrImportButton when unlocking is going on (again)
Stef Walter [Tue, 27 Sep 2011 15:40:12 +0000 (17:40 +0200)]
gcr: Fix logic in GcrImportButton when unlocking is going on (again)

13 years agogcr: More deprecation tweaking so we can build on FC16
Stef Walter [Tue, 27 Sep 2011 17:25:39 +0000 (19:25 +0200)]
gcr: More deprecation tweaking so we can build on FC16

13 years agogcr: Fix logic in GcrImportButton when unlocking is going on
Stef Walter [Tue, 27 Sep 2011 15:32:48 +0000 (17:32 +0200)]
gcr: Fix logic in GcrImportButton when unlocking is going on

 * Don't show the spinner when no importers are ready even though
   initializing

13 years agogcr: Fix problem with unlock prompt
Stef Walter [Tue, 27 Sep 2011 15:32:02 +0000 (17:32 +0200)]
gcr: Fix problem with unlock prompt

 * Signal handling of the authenticate was in the wrong order.

13 years agogcr: Fix documentation, abi, and translation issues
Stef Walter [Tue, 27 Sep 2011 15:12:02 +0000 (17:12 +0200)]
gcr: Fix documentation, abi, and translation issues

13 years agogcr: Fix invalid memory access in _gcr_record_set_base64
Stef Walter [Tue, 27 Sep 2011 14:47:37 +0000 (16:47 +0200)]
gcr: Fix invalid memory access in _gcr_record_set_base64

13 years agogcr: Use correct icon in the PKCS#11 importer
Stef Walter [Tue, 27 Sep 2011 13:53:35 +0000 (15:53 +0200)]
gcr: Use correct icon in the PKCS#11 importer

13 years agogcr: Refactor GcrParser and delay listing of importers
Stef Walter [Tue, 27 Sep 2011 13:48:39 +0000 (15:48 +0200)]
gcr: Refactor GcrParser and delay listing of importers

 * PKCS#11 takes a long time to initialize with certain smart cards
   (several seconds). So we can't block the UI.
 * Expose the PKCS#11 initialization functions publicly.
 * Refactor GcrParser so that the current parsed item can be held
   around until later in the form of a GcrParsed structure.
 * Queue parsed items in GcrImportButton until PKCS#11 is initialized.

13 years agogcr: Add GcrSingleCollection internal class
Stef Walter [Tue, 27 Sep 2011 13:44:11 +0000 (15:44 +0200)]
gcr: Add GcrSingleCollection internal class

13 years agogcr: Show warnings about keys that have not been verified
Stef Walter [Fri, 23 Sep 2011 10:43:25 +0000 (12:43 +0200)]
gcr: Show warnings about keys that have not been verified

 * And emblem icons that have not been verified.

13 years agogcr: Fixes for the import button and viewer widget
Stef Walter [Thu, 22 Sep 2011 19:25:59 +0000 (21:25 +0200)]
gcr: Fixes for the import button and viewer widget

 * Update the button before anything queued.
 * Fix viewer widget arguments

13 years agogcr: Distribute new headers properly.
Stef Walter [Thu, 22 Sep 2011 19:25:46 +0000 (21:25 +0200)]
gcr: Distribute new headers properly.

13 years agogcr: Fix up documentation images
Stef Walter [Thu, 22 Sep 2011 15:07:17 +0000 (17:07 +0200)]
gcr: Fix up documentation images

13 years agogcr: Complete GcrViewerWidget and GcrImportButton
Stef Walter [Thu, 22 Sep 2011 14:59:17 +0000 (16:59 +0200)]
gcr: Complete GcrViewerWidget and GcrImportButton

 * Cleanup documentation
 * Rework how the GcrViewerWindow works so that it can be used
   elsewhere.
 * Create GcrImportButton which can import certificates and widgets.

13 years agogcr: Fix up documentation for importer and menu button
Stef Walter [Thu, 22 Sep 2011 06:11:44 +0000 (08:11 +0200)]
gcr: Fix up documentation for importer and menu button

13 years agogcr: Implement GcrMenuButton which is copied from gnome-contacts
Stef Walter [Wed, 21 Sep 2011 15:13:27 +0000 (17:13 +0200)]
gcr: Implement GcrMenuButton which is copied from gnome-contacts

 * The standard clickable button which drops down a menu.

13 years agogcr: Refactor the importer with multiple registered importers
Stef Walter [Wed, 21 Sep 2011 11:55:51 +0000 (13:55 +0200)]
gcr: Refactor the importer with multiple registered importers

 * Allow multiple importers to register, and have a way for
   them to identify whether something is importable by the
   importer or not.
 * Create a new GnuPG keyring importer.
 * Add boxed type for a GList of GObject
 * Some other minor cleanups.

13 years agogcr: Add Renderer for Gnupg keys
Stef Walter [Tue, 20 Sep 2011 09:56:20 +0000 (11:56 +0200)]
gcr: Add Renderer for Gnupg keys

 * Uses the colon style GcrRecord data to render gnupg key.

13 years agogcr: Implement parsing of openpgp packet contents into records.
Stef Walter [Fri, 16 Sep 2011 10:29:58 +0000 (12:29 +0200)]
gcr: Implement parsing of openpgp packet contents into records.

 * Also centralize our timegm() implementation for dumb OS's.
 * Add tests for openpgp packet parsing
 * Produces with-colons format in the gnupg style, slight differences
   but not incompatible.

13 years agogcr: Implement input for GcrGnupgProcess
Stef Walter [Wed, 14 Sep 2011 09:52:24 +0000 (11:52 +0200)]
gcr: Implement input for GcrGnupgProcess

 * Use io streams for input and output

13 years agogcr: GcrParser now reports current format for block parsed
Stef Walter [Wed, 14 Sep 2011 06:34:12 +0000 (08:34 +0200)]
gcr: GcrParser now reports current format for block parsed

 * The current format represents the inner most block
 * Refactor GcrParser so that we can accurately track the state of
   the parsed items when multiple functions contribute to that state.

13 years agogcr: Implement recognizing of OpenPGP packets
Stef Walter [Tue, 13 Sep 2011 15:07:28 +0000 (17:07 +0200)]
gcr: Implement recognizing of OpenPGP packets

 * Doesn't actually parse keys or anything else about OpenPGP (yet).
 * Generalize the PEM code so that it works for PGP armor.

13 years agogcr: Implement OpenSSH public key parser
Stef Walter [Tue, 13 Sep 2011 06:04:41 +0000 (08:04 +0200)]
gcr: Implement OpenSSH public key parser

 * And add tests for various formats.

13 years agoegg: Add decoder for decimal data, analogous to the hex decoder.
Stef Walter [Mon, 12 Sep 2011 14:58:03 +0000 (16:58 +0200)]
egg: Add decoder for decimal data, analogous to the hex decoder.

13 years agogcr: Remove stock icon code, add gcr_icon_for_token_info()
Stef Walter [Tue, 27 Sep 2011 07:19:49 +0000 (09:19 +0200)]
gcr: Remove stock icon code, add gcr_icon_for_token_info()

 * gcr-icons.h is public
 * Remove old stock icon code, and use themed icons properly
 * Add gcr_icon_for_token_info() function which looks up an
   appropriate icon for a token.

13 years agogcr: Compatiblity fix for glib 2.28.x
Stef Walter [Tue, 27 Sep 2011 07:19:18 +0000 (09:19 +0200)]
gcr: Compatiblity fix for glib 2.28.x

13 years agogcr: Add icons for smart card
Stef Walter [Fri, 23 Sep 2011 15:18:45 +0000 (17:18 +0200)]
gcr: Add icons for smart card

 * Copy a bit of infrastructure from gnome-icon-theme

https://bugzilla.gnome.org/show_bug.cgi?id=659951

13 years agogcr: Fix for more glib deprecations
Stef Walter [Mon, 26 Sep 2011 20:05:21 +0000 (22:05 +0200)]
gcr: Fix for more glib deprecations

13 years agoMerge branch 'introspect-nodes'
Stef Walter [Mon, 26 Sep 2011 13:40:34 +0000 (15:40 +0200)]
Merge branch 'introspect-nodes'

13 years agoRework configure build options based on recent mailing list posts
Stef Walter [Mon, 26 Sep 2011 13:22:49 +0000 (15:22 +0200)]
Rework configure build options based on recent mailing list posts

 * --enable-strict to enable -Werror, fatal warnings and disable
   deprecations
 * --disable-debug to G_DISABLE_ASSERT
 * default debug for -g, WITH_DEBUG
 * --enable-debug to -OO

13 years agoSplit the gcr library into base and ui components.
Stef Walter [Mon, 26 Sep 2011 09:58:33 +0000 (11:58 +0200)]
Split the gcr library into base and ui components.

 * Different pkg-config files gcr-3.pc and gcr-base-3.pc
 * The base library doesn't link to GTK+ or anything that
   is used in the UI. It can be used by non-ui programs.

13 years agoMerge branch 'gnome-3-2'
Stef Walter [Mon, 26 Sep 2011 09:47:56 +0000 (11:47 +0200)]
Merge branch 'gnome-3-2'

13 years agoUpdate symbols files for recently added API.
Stef Walter [Wed, 21 Sep 2011 12:31:31 +0000 (14:31 +0200)]
Update symbols files for recently added API.

13 years agoFix pkcs11 related pkg-config variables and build output.
Stef Walter [Mon, 19 Sep 2011 20:04:32 +0000 (22:04 +0200)]
Fix pkcs11 related pkg-config variables and build output.

 * These were accidentally missed in earlier commits related
   to p11-kit 0.6

13 years agoMerge branch 'track-memory'
Stef Walter [Mon, 19 Sep 2011 07:39:28 +0000 (09:39 +0200)]
Merge branch 'track-memory'

13 years agogck: Documentation fix
Stef Walter [Mon, 19 Sep 2011 07:38:10 +0000 (09:38 +0200)]
gck: Documentation fix

13 years agoMerge branch 'sort-values'
Stef Walter [Mon, 19 Sep 2011 07:36:43 +0000 (09:36 +0200)]
Merge branch 'sort-values'

13 years agobuild: Fix parallel compilation
Bastien Nocera [Sat, 17 Sep 2011 19:08:36 +0000 (20:08 +0100)]
build: Fix parallel compilation

We need to tell Makefile how to generate gcr-oids.h

13 years agoChange online URL from library.g.o to developer.g.o
Andre Klapper [Tue, 13 Sep 2011 10:40:33 +0000 (12:40 +0200)]
Change online URL from library.g.o to developer.g.o

13 years agogcr: Accept slightly invalid PKCS#12 files
Stef Walter [Mon, 12 Sep 2011 10:21:05 +0000 (12:21 +0200)]
gcr: Accept slightly invalid PKCS#12 files

 * In particular when the order of a SET OF is incorrect as is generated
   by certain implementations.
 * Revert cbecc802e8cf5803aac9fbd3c546b539773220b2 since this fix was
   wrong.
 * Add egg_asn1x_decode_no_validate() so that callers can validate on
   their own and specify validation options.

13 years agogcr: Verify PKCS#12 MAC
Stef Walter [Mon, 12 Sep 2011 10:20:19 +0000 (12:20 +0200)]
gcr: Verify PKCS#12 MAC

 * This also has the nice effect of sanifying the prompting for unlock
   passwords for PKCS#12 file, since it's done by the parser before
   looking inside the various parts of the file.

13 years agogcr: Fix memory leak while parsing PKCS#8 encrypted keys.
Stef Walter [Mon, 12 Sep 2011 08:14:38 +0000 (10:14 +0200)]
gcr: Fix memory leak while parsing PKCS#8 encrypted keys.

13 years agoegg: Fix issue generating PKCS#12 symkey from password
Stef Walter [Mon, 12 Sep 2011 08:13:20 +0000 (10:13 +0200)]
egg: Fix issue generating PKCS#12 symkey from password

 * If the key needed was longer than the hash size we would
   generate the incorrect key.
 * Right align the calculated number correctly in the buffer

13 years agoegg: Fix ASN.1 issues validating order of SETOF
Stef Walter [Mon, 12 Sep 2011 08:12:03 +0000 (10:12 +0200)]
egg: Fix ASN.1 issues validating order of SETOF

 * Compare just the value, rather than the entire TLV
 * This fixes some corner cases parsing PKCS#12 files

13 years agoSecure memory tagging
Stef Walter [Thu, 14 Oct 2010 19:38:39 +0000 (19:38 +0000)]
Secure memory tagging

 * Tag all secure memory with strings, and print out diagnostic
   report of what's in use, upon request.

13 years agoFix typo in GcrUnlockRenderer
Stef Walter [Sat, 10 Sep 2011 05:57:14 +0000 (07:57 +0200)]
Fix typo in GcrUnlockRenderer

https://bugzilla.gnome.org/show_bug.cgi?id=658668

13 years agogck: Add functions for matching uri to modules and tokens
Stef Walter [Fri, 9 Sep 2011 12:54:32 +0000 (14:54 +0200)]
gck: Add functions for matching uri to modules and tokens

13 years agogcr: Add gcr_union_collection_have() and gcr_union_collection_size()
Stef Walter [Fri, 9 Sep 2011 10:22:06 +0000 (12:22 +0200)]
gcr: Add gcr_union_collection_have() and gcr_union_collection_size()

 * Used to check wether a collection is part of the union.

13 years agogcr: Fix extra object reference in gcr_union_collection_take()
Stef Walter [Wed, 7 Sep 2011 14:14:24 +0000 (16:14 +0200)]
gcr: Fix extra object reference in gcr_union_collection_take()

13 years agogcr: Fix null pointer dereference when finalizing GcrCollectionModel
Stef Walter [Wed, 7 Sep 2011 14:14:08 +0000 (16:14 +0200)]
gcr: Fix null pointer dereference when finalizing GcrCollectionModel

13 years agogcr: Fix gcr-viewer build errors
Travis Reitter [Tue, 6 Sep 2011 13:28:44 +0000 (15:28 +0200)]
gcr: Fix gcr-viewer build errors

https://bugzilla.gnome.org/show_bug.cgi?id=658319

13 years agogcr: Fix linking of gcr-viewer
Rodrigo Moya [Tue, 6 Sep 2011 08:43:14 +0000 (10:43 +0200)]
gcr: Fix linking of gcr-viewer

https://bugzilla.gnome.org/show_bug.cgi?id=658249

13 years agogcr: Add GcrUnionCollection class
Stef Walter [Tue, 6 Sep 2011 13:21:07 +0000 (15:21 +0200)]
gcr: Add GcrUnionCollection class

 * A GcrCollection which combines the contents of other collections
   into a single collection.

13 years agogcr: gcr_collection_model_set_columns() now returns number of columns
Stef Walter [Mon, 5 Sep 2011 14:08:58 +0000 (16:08 +0200)]
gcr: gcr_collection_model_set_columns() now returns number of columns

 * Return the number of real columns added (not including the
   possible selected column).
 * Fix several crashers in GcrCollectionModel as well.

13 years agogcr: Add gcr_collection_model_get_collection()
Stef Walter [Mon, 5 Sep 2011 14:08:26 +0000 (16:08 +0200)]
gcr: Add gcr_collection_model_get_collection()

 * A way to get the collection that collection model is based on.

13 years agogcr: Add gcr_collection_contains() as a virtual interface method.
Stef Walter [Mon, 5 Sep 2011 14:03:36 +0000 (16:03 +0200)]
gcr: Add gcr_collection_contains() as a virtual interface method.

 * And deprecate gcr_simple_collection_contains()
 * This is because this method is hard to implement at a higher layer
   efficiently, and the collection itself needs to get involved.

13 years agogcr: Add support for GcrCollectionModel to have child rows
Stef Walter [Fri, 2 Sep 2011 19:10:06 +0000 (21:10 +0200)]
gcr: Add support for GcrCollectionModel to have child rows

 * A child row is represented by an object that implements the
   GcrCollection

13 years agogcr: Add GtkTreeSortable interface to GcrCollectionModel
Stef Walter [Fri, 2 Sep 2011 14:50:31 +0000 (16:50 +0200)]
gcr: Add GtkTreeSortable interface to GcrCollectionModel

 * Can now sort based on values, which simplifies callers of
   GcrCollectionModel.
 * Needed for use in seahorse.