示例#1
0
LwPreferences* 
gw_application_get_preferences (GwApplication *application)
{
    GwApplicationPrivate *priv;

    priv = application->priv;

    if (priv->preferences == NULL)
    {
      priv->preferences = lw_preferences_new (NULL);
    }

    return priv->preferences;
}
示例#2
0
LwPreferences* 
w_application_get_preferences (WApplication *application)
{
    WApplicationPrivate *priv;

    priv = application->priv;


    if (priv->preferences == NULL)
    {
      g_io_extension_point_register ("gsettings-backend");
      priv->preferences = lw_preferences_new (g_memory_settings_backend_new ());
    }

    return priv->preferences;
}