diff options
author | Benedikt Meurer <benny@xfce.org> | 2004-05-17 18:25:21 +0000 |
---|---|---|
committer | Benedikt Meurer <benny@xfce.org> | 2004-05-17 18:25:21 +0000 |
commit | d242c70cb441741bc6f294601e75964b3ae753e9 (patch) | |
tree | 6ca8bb0b0bf108971103ccc28b2b2aba7c861fe6 /xfce4-session/xfsm-client.c | |
parent | 5f03b02089126586515dae291a08e56aaee1e66b (diff) | |
download | xfce4-session-d242c70cb441741bc6f294601e75964b3ae753e9.tar.gz |
Remark: One should not ever commit from a dirty sandbox!
(Old svn revision: 4539)
Diffstat (limited to 'xfce4-session/xfsm-client.c')
-rw-r--r-- | xfce4-session/xfsm-client.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/xfce4-session/xfsm-client.c b/xfce4-session/xfsm-client.c new file mode 100644 index 00000000..f3fb1e08 --- /dev/null +++ b/xfce4-session/xfsm-client.c @@ -0,0 +1,37 @@ +/* $Id$ */ +/*- + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <xfce4-session/xfsm-client.h> + + +void +xfsm_client_free (XfsmClient *client) +{ + g_return_if_fail (client != NULL); + + if (client->properties != NULL) + xfsm_properties_free (client->properties); + if (client->save_timeout_id > 0) + g_source_remove (client->save_timeout_id); + g_free (client); +} + + +void +xfsm_client_set_initial_properties (XfsmClient *client, + XfsmProperties *properties) +{ + g_return_if_fail (client != NULL); + g_return_if_fail (properties != NULL); + + if (client->properties != NULL) + xfsm_properties_free (client->properties); + client->properties = properties; + client->id = properties->client_id; +} + |