Allow GCancellable to be subclassed by adding a private structure

This commit is contained in:
Richard Hughes
2009-06-19 10:16:22 +01:00
committed by Alexander Larsson
parent 0ccd18bc83
commit b0dc7afd2a
2 changed files with 81 additions and 42 deletions

View File

@@ -44,6 +44,15 @@ G_BEGIN_DECLS
* Allows actions to be cancelled.
*/
typedef struct _GCancellableClass GCancellableClass;
typedef struct _GCancellablePrivate GCancellablePrivate;
struct _GCancellable
{
GObject parent_instance;
/*< private >*/
GCancellablePrivate *priv;
};
struct _GCancellableClass
{