![]() |
![]() |
![]() |
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
);
panel_applet_gconf_get_full_key
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
|
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
);
panel_applet_gconf_get_bool
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_get_int
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_get_string
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_get_float
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_get_list
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_get_value
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_set_bool
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_set_int
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_set_string
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_set_float
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_set_list
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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
);
panel_applet_gconf_set_value
has been deprecated since version 3.0 and should not be used in newly-written code. Use GSettings to store per-instance settings.
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 . |