![]() |
![]() |
![]() |
Panel Applet Library Reference Manual | |
---|---|---|---|---|
Top | Description |
#include <panel-applet-gconf.h> gchar * panel_applet_gconf_get_full_key (PanelApplet *applet
,const gchar *key
); gboolean panel_applet_gconf_get_bool (PanelApplet *applet
,const gchar *key
,GError **error
); gint panel_applet_gconf_get_int (PanelApplet *applet
,const gchar *key
,GError **error
); gchar * panel_applet_gconf_get_string (PanelApplet *applet
,const gchar *key
,GError **error
); gdouble panel_applet_gconf_get_float (PanelApplet *applet
,const gchar *key
,GError **error
); GSList * panel_applet_gconf_get_list (PanelApplet *applet
,const gchar *key
,GConfValueType list_type
,GError **error
); GConfValue * panel_applet_gconf_get_value (PanelApplet *applet
,const gchar *key
,GError **error
); void panel_applet_gconf_set_bool (PanelApplet *applet
,const gchar *key
,gboolean the_bool
,GError **error
); void panel_applet_gconf_set_int (PanelApplet *applet
,const gchar *key
,gint the_int
,GError **error
); void panel_applet_gconf_set_string (PanelApplet *applet
,const gchar *key
,const gchar *the_string
,GError **error
); void panel_applet_gconf_set_float (PanelApplet *applet
,const gchar *key
,gdouble the_float
,GError **error
); void panel_applet_gconf_set_list (PanelApplet *applet
,const gchar *key
,GConfValueType list_type
,GSList *list
,GError **error
); void panel_applet_gconf_set_value (PanelApplet *applet
,const gchar *key
,GConfValue *value
,GError **error
);
The panel_applet_gconf_*()
set of API provides
convenience functions to access GConf keys that are specific to an
applet instance.
Keep in mind that it might be worth considering using global settings for your applet, instead of settings specific to an instance.
gchar * panel_applet_gconf_get_full_key (PanelApplet *applet
,const gchar *key
);
|
a PanelApplet. |
|
a GConf key name. |
Returns : |
the full GConf path of key , in the per-instance GConf directory of
applet . The string should be freed by the caller. |
gboolean panel_applet_gconf_get_bool (PanelApplet *applet
,const gchar *key
,GError **error
);
Convenience wrapper around gconf_client_get_bool()
to get the value of key
in the per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
a GError, or NULL . |
Returns : |
the value of key . |
gint panel_applet_gconf_get_int (PanelApplet *applet
,const gchar *key
,GError **error
);
Convenience wrapper around gconf_client_get_int()
to get the value of key
in the per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
a GError, or NULL . |
Returns : |
the value of key . |
gchar * panel_applet_gconf_get_string (PanelApplet *applet
,const gchar *key
,GError **error
);
Convenience wrapper around gconf_client_get_string()
to get the value of key
in the per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
a GError, or NULL . |
Returns : |
the value of key . The string should be freed by the caller. |
gdouble panel_applet_gconf_get_float (PanelApplet *applet
,const gchar *key
,GError **error
);
Convenience wrapper around gconf_client_get_float()
to get the value of key
in the per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
a GError, or NULL . |
Returns : |
the value of key . |
GSList * panel_applet_gconf_get_list (PanelApplet *applet
,const gchar *key
,GConfValueType list_type
,GError **error
);
Convenience wrapper around gconf_client_get_list()
to get the value of key
in the per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
a GError, or NULL . |
Returns : |
the value of key . The list and its content should be freed by the
caller. |
GConfValue * panel_applet_gconf_get_value (PanelApplet *applet
,const gchar *key
,GError **error
);
Convenience wrapper around gconf_client_get_value()
to get the value of key
in the per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
a GError, or NULL . |
Returns : |
the value of key . |
void panel_applet_gconf_set_bool (PanelApplet *applet
,const gchar *key
,gboolean the_bool
,GError **error
);
Convenience wrapper around gconf_client_set_bool()
to update key
in the
per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
new value for key . |
|
a GError, or NULL . |
void panel_applet_gconf_set_int (PanelApplet *applet
,const gchar *key
,gint the_int
,GError **error
);
Convenience wrapper around gconf_client_set_int()
to update key
in the
per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
new value for key . |
|
a GError, or NULL . |
void panel_applet_gconf_set_string (PanelApplet *applet
,const gchar *key
,const gchar *the_string
,GError **error
);
Convenience wrapper around gconf_client_set_string()
to update key
in the
per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
new value for key . |
|
a GError, or NULL . |
void panel_applet_gconf_set_float (PanelApplet *applet
,const gchar *key
,gdouble the_float
,GError **error
);
Convenience wrapper around gconf_client_set_float()
to update key
in the
per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
new value for key . |
|
a GError, or NULL . |
void panel_applet_gconf_set_list (PanelApplet *applet
,const gchar *key
,GConfValueType list_type
,GSList *list
,GError **error
);
Convenience wrapper around gconf_client_set_list()
to update key
in the
per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
type of items in list . |
|
new value for key . |
|
a GError, or NULL . |
void panel_applet_gconf_set_value (PanelApplet *applet
,const gchar *key
,GConfValue *value
,GError **error
);
Convenience wrapper around gconf_client_set_value()
to update key
in the
per-instance GConf directory of applet
.
|
a PanelApplet. |
|
a GConf key name. |
|
new value for key . |
|
a GError, or NULL . |