|
using System;
using System.Collections.Generic;
using GConf;
namespace WeatherApplet.Model
{
public static class SettingsStore
{
//path in gconf-editor
private const string APPLICATION_KEY = "/apps/appletweather/";
//gconf object
private static Client client = new Client();
//set value
public static void Set(string key, object val)
{
client.Set(APPLICATION_KEY+key, val);
}
//get value
public static object Get(string key)
{
return client.Get(APPLICATION_KEY+key);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Interested in design/development of framework functionality using the best patterns and practices.