Ejemplo n.º 1
0
static void
xfce_workspace_disconnect_backdrop_settings(XfceWorkspace *workspace,
                                            XfceBackdrop *backdrop,
                                            guint monitor)
{
    TRACE("entering");

    g_return_if_fail(XFCE_IS_BACKDROP(backdrop));

    xfconf_g_property_unbind_all(G_OBJECT(backdrop));
}
Ejemplo n.º 2
0
/**
 * rstto_settings_dispose:
 * @object:
 *
 */
static void
rstto_settings_dispose (GObject *object)
{
    RsttoSettings *settings = RSTTO_SETTINGS (object);

    if (settings->priv)
    {
        if (settings->priv->channel)
        {
            xfconf_g_property_unbind_all (settings->priv->channel);
            g_object_unref (settings->priv->channel);
            settings->priv->channel = NULL;
        }

        if (settings->priv->last_file_path)
        {
            g_free (settings->priv->last_file_path);
            settings->priv->last_file_path = NULL;
        }

        if (settings->priv->navigationbar_position)
        {
            g_free (settings->priv->navigationbar_position);
            settings->priv->navigationbar_position = NULL;
        }

        if (settings->priv->desktop_type)
        {
            g_free (settings->priv->desktop_type);
            settings->priv->desktop_type = NULL;
        }

        if (settings->priv->bgcolor)
        {
            g_free (settings->priv->bgcolor);
            settings->priv->bgcolor = NULL;
        }

        if (settings->priv->bgcolor_fullscreen)
        {
            g_free (settings->priv->bgcolor_fullscreen);
            settings->priv->bgcolor_fullscreen = NULL;
        }

        g_free (settings->priv);
        settings->priv = NULL;
    }
}