Re: getting system UI defaults
- From: "Dr. Michael J. Chudobiak" <mjc avtechpulse com>
- To: Chuck Crisler <charles crisler comcast net>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: getting system UI defaults
- Date: Thu, 19 Mar 2009 07:48:50 -0400
Chuck Crisler wrote:
How do you get system default values such as text color, window
background color, desktop color, etc?
Thank you,
Chuck
You read the gconf settings. For example, in vala:
public static string getSystemDefaultMonospaceFont() {
string value = "";
var gc = GConf.Client.get_default ();
try {
value = gc.get_string("/desktop/gnome/interface/monospace_font_name");
} catch (GLib.Error e) {
warning(_("Unable to retrieve gconf key: %s"), e.message);
value = "Monospace 10";
}
return value;
}
- Mike
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]