diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2007-05-03 01:39:27 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-05-03 01:39:27 +0800 |
commit | 563cdc5a284bc85957f60b14048ba6e42a0c7c87 (patch) | |
tree | bb0b4df3fa7e332602951d48c46384a9b3cb7ab3 /libempathy-gtk/gossip-status-presets.c | |
parent | 02fc345b94f6fa5d4a87ec2917e5fe846f9e755d (diff) | |
download | gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.gz gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.bz2 gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.lz gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.xz gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.tar.zst gsoc2013-empathy-563cdc5a284bc85957f60b14048ba6e42a0c7c87.zip |
[darcs-to-svn @ Autostart]
svn path=/trunk/; revision=27
Diffstat (limited to 'libempathy-gtk/gossip-status-presets.c')
-rw-r--r-- | libempathy-gtk/gossip-status-presets.c | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/libempathy-gtk/gossip-status-presets.c b/libempathy-gtk/gossip-status-presets.c index fce8a08d4..b27238d4f 100644 --- a/libempathy-gtk/gossip-status-presets.c +++ b/libempathy-gtk/gossip-status-presets.c @@ -152,7 +152,7 @@ status_presets_file_parse (const gchar *filename) /* Use the default if not set */ if (!default_preset) { - status_presets_set_default (MC_PRESENCE_AVAILABLE, NULL); + status_presets_set_default (MC_PRESENCE_OFFLINE, NULL); } gossip_debug (DEBUG_DOMAIN, "Parsed %d status presets", g_list_length (presets)); @@ -186,23 +186,6 @@ gossip_status_presets_get_all (void) g_free (file_with_path); } -const gchar * -status_presets_get_state_as_str (McPresence state) -{ - switch (state) { - case MC_PRESENCE_AVAILABLE: - return "available"; - case MC_PRESENCE_DO_NOT_DISTURB: - return "busy"; - case MC_PRESENCE_AWAY: - return "away"; - case MC_PRESENCE_EXTENDED_AWAY: - return "ext_away"; - default: - return "unknown"; - } -} - static gboolean status_presets_file_save (void) { @@ -231,7 +214,7 @@ status_presets_file_save (void) xmlNodePtr subnode; xmlChar *state; - state = (gchar*) status_presets_get_state_as_str (default_preset->state); + state = (gchar*) gossip_presence_state_to_str (default_preset->state); subnode = xmlNewTextChild (root, NULL, "default", default_preset->status); @@ -244,7 +227,7 @@ status_presets_file_save (void) xmlChar *state; sp = l->data; - state = (gchar*) status_presets_get_state_as_str (sp->state); + state = (gchar*) gossip_presence_state_to_str (sp->state); count[sp->state]++; if (count[sp->state] > STATUS_PRESETS_MAX_EACH) { @@ -358,7 +341,7 @@ McPresence gossip_status_presets_get_default_state (void) { if (!default_preset) { - return MC_PRESENCE_AVAILABLE; + return MC_PRESENCE_OFFLINE; } return default_preset->state; |