示例#1
0
/**
 * compilerkit_complement_init:
 * @fn compilerkit_complement_init 
 * Initializes the CompilerKitComplement instance.
 * @pre self is not NULL.
 * @param CompilerKitComplement to initialize
 * @return void
 */
static void
compilerkit_complement_init (CompilerKitComplement *self)
{
    CompilerKitComplementPrivate *priv;

    self->priv = priv = COMPILERKIT_COMPLEMENT_GET_PRIVATE (self);

    priv->node = NULL;
}
示例#2
0
/**
 * compilerkit_complement_dispose:
 * @fn compilerkit_complement_dispose
 * Reverse what compilerkit_complement_init allocated.
 * @pre GObject is not NULL.
 * @param GObject* An object to dispose.
 * @return void
 */
static void
compilerkit_complement_dispose (GObject* object)
{
  CompilerKitComplement *self = COMPILERKIT_COMPLEMENT (object);
  CompilerKitComplementPrivate* priv;

  priv = COMPILERKIT_COMPLEMENT_GET_PRIVATE (self);
  
  /** @todo Deallocate memory as necessary */

  G_OBJECT_CLASS (compilerkit_complement_parent_class)->dispose (object);
}
示例#3
0
/**
 * compilerkit_complement_dispose:
 * @fn compilerkit_complement_dispose
 * Reverse what compilerkit_complement_init allocated.
 * @pre GObject is not NULL.
 * @param GObject* An object to dispose.
 * @return void
 */
static void
compilerkit_complement_dispose (GObject* object)
{
    CompilerKitComplement *self = COMPILERKIT_COMPLEMENT (object);
    CompilerKitComplementPrivate* priv;

    priv = COMPILERKIT_COMPLEMENT_GET_PRIVATE (self);

    g_object_unref (priv->node);

    G_OBJECT_CLASS (compilerkit_complement_parent_class)->dispose (object);
}
示例#4
0
/**
 * compilerkit_complement_init:
 * @fn compilerkit_complement_init 
 * Initializes the CompilerKitComplement instance.
 * @pre self is not NULL.
 * @param CompilerKitComplement to initialize
 * @return void
 */
static void
compilerkit_complement_init (CompilerKitComplement *self)
{
  CompilerKitComplementPrivate *priv;

  self->priv = priv = COMPILERKIT_COMPLEMENT_GET_PRIVATE (self);

  /** @todo Initialize public fields */
  // self->public_field = some_value;

  /** @todo Initialize private fields */
  // priv->member = whatever;
}