diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-18 01:36:07 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-18 01:36:07 +0800 |
commit | b80b6e34115b8f2e483e89fa2dcd89fc7c4dfdcc (patch) | |
tree | 302209c999a16fcb1c0dd9d311978d48a838cc4b /libempathy | |
parent | 526e1430353d4a371d98bdd6a3064499c6a286e4 (diff) | |
download | gsoc2013-empathy-b80b6e34115b8f2e483e89fa2dcd89fc7c4dfdcc.tar gsoc2013-empathy-b80b6e34115b8f2e483e89fa2dcd89fc7c4dfdcc.tar.gz gsoc2013-empathy-b80b6e34115b8f2e483e89fa2dcd89fc7c4dfdcc.tar.bz2 gsoc2013-empathy-b80b6e34115b8f2e483e89fa2dcd89fc7c4dfdcc.tar.lz gsoc2013-empathy-b80b6e34115b8f2e483e89fa2dcd89fc7c4dfdcc.tar.xz gsoc2013-empathy-b80b6e34115b8f2e483e89fa2dcd89fc7c4dfdcc.tar.zst gsoc2013-empathy-b80b6e34115b8f2e483e89fa2dcd89fc7c4dfdcc.zip |
remove empathy_idle_{get,set}_flash_state
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-idle.c | 46 | ||||
-rw-r--r-- | libempathy/empathy-idle.h | 3 |
2 files changed, 0 insertions, 49 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c index 9889f1fdb..03b27a11a 100644 --- a/libempathy/empathy-idle.c +++ b/libempathy/empathy-idle.c @@ -54,7 +54,6 @@ typedef struct { TpConnectionPresenceType state; gchar *status; - TpConnectionPresenceType flash_state; gboolean auto_away; TpConnectionPresenceType away_saved_state; @@ -86,7 +85,6 @@ enum { PROP_0, PROP_STATE, PROP_STATUS, - PROP_FLASH_STATE, PROP_AUTO_AWAY }; @@ -361,9 +359,6 @@ idle_get_property (GObject *object, case PROP_STATUS: g_value_set_string (value, empathy_idle_get_status (idle)); break; - case PROP_FLASH_STATE: - g_value_set_enum (value, empathy_idle_get_flash_state (idle)); - break; case PROP_AUTO_AWAY: g_value_set_boolean (value, empathy_idle_get_auto_away (idle)); break; @@ -392,9 +387,6 @@ idle_set_property (GObject *object, case PROP_STATUS: empathy_idle_set_status (idle, g_value_get_string (value)); break; - case PROP_FLASH_STATE: - empathy_idle_set_flash_state (idle, g_value_get_enum (value)); - break; case PROP_AUTO_AWAY: empathy_idle_set_auto_away (idle, g_value_get_boolean (value)); break; @@ -429,14 +421,6 @@ empathy_idle_class_init (EmpathyIdleClass *klass) "status", NULL, G_PARAM_READWRITE)); - g_object_class_install_property (object_class, - PROP_FLASH_STATE, - g_param_spec_uint ("flash-state", - "flash-state", - "flash-state", - 0, NUM_TP_CONNECTION_PRESENCE_TYPES, - TP_CONNECTION_PRESENCE_TYPE_UNSET, - G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_AUTO_AWAY, @@ -608,36 +592,6 @@ empathy_idle_set_status (EmpathyIdle *idle, empathy_idle_set_presence (idle, priv->state, status); } -TpConnectionPresenceType -empathy_idle_get_flash_state (EmpathyIdle *idle) -{ - EmpathyIdlePriv *priv; - - priv = GET_PRIV (idle); - - if (G_UNLIKELY (!priv->ready)) - g_critical (G_STRLOC ": %s called before AccountManager ready", - G_STRFUNC); - - return priv->flash_state; -} - -void -empathy_idle_set_flash_state (EmpathyIdle *idle, - TpConnectionPresenceType state) -{ - EmpathyIdlePriv *priv; - - priv = GET_PRIV (idle); - - priv->flash_state = state; - - if (state == TP_CONNECTION_PRESENCE_TYPE_UNSET) { - } - - g_object_notify (G_OBJECT (idle), "flash-state"); -} - static void empathy_idle_do_set_presence (EmpathyIdle *idle, TpConnectionPresenceType status_type, diff --git a/libempathy/empathy-idle.h b/libempathy/empathy-idle.h index 1a8c313bc..105e1830c 100644 --- a/libempathy/empathy-idle.h +++ b/libempathy/empathy-idle.h @@ -55,9 +55,6 @@ void empathy_idle_set_state (EmpathyIdle *idle, const gchar *empathy_idle_get_status (EmpathyIdle *idle); void empathy_idle_set_status (EmpathyIdle *idle, const gchar *status); -TpConnectionPresenceType empathy_idle_get_flash_state (EmpathyIdle *idle); -void empathy_idle_set_flash_state (EmpathyIdle *idle, - TpConnectionPresenceType state); void empathy_idle_set_presence (EmpathyIdle *idle, TpConnectionPresenceType state, const gchar *status); |