diff options
Diffstat (limited to 'libindicator')
-rw-r--r-- | libindicator/indicator-object.c | 34 | ||||
-rw-r--r-- | libindicator/indicator-object.h | 4 |
2 files changed, 36 insertions, 2 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c index 73c1ca7..71d0c94 100644 --- a/libindicator/indicator-object.c +++ b/libindicator/indicator-object.c @@ -571,3 +571,37 @@ indicator_object_entry_close (IndicatorObject * io, IndicatorObjectEntry * entry return; } + +/** + indicator_object_set_environment: + @io: #IndicatorObject to set on + @env: List of enviroment names to use + + Sets the names of the environment that the indicator is being + loaded into. This allows for indicators to behave differently + in different hosts if need be. +*/ +void +indicator_object_set_environment (IndicatorObject * io, const GStrv env) +{ + + return; +} + +/** + indicator_object_get_environment: + @io: #IndicatorObject to get the environment from + + Gets the list of environment strings that this object is + placed into. + + Return value: (transfer none): Gets the list of strings that + represent the environment or NULL if none were given. +*/ +const GStrv +indicator_object_get_environment (IndicatorObject * io) +{ + + + return; +} diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h index 3320b95..221f399 100644 --- a/libindicator/indicator-object.h +++ b/libindicator/indicator-object.h @@ -179,8 +179,8 @@ guint indicator_object_get_show_now (IndicatorObject * io, IndicatorObjectEntr void indicator_object_entry_activate (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp); void indicator_object_entry_close (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp); -void indicator_object_set_environment (IndicatorObject * io, const GStrv * env); -const GStrv * indicator_object_get_environment (IndicatorObject * io); +void indicator_object_set_environment (IndicatorObject * io, const GStrv env); +const GStrv indicator_object_get_environment (IndicatorObject * io); G_END_DECLS |