aboutsummaryrefslogtreecommitdiff
path: root/src/voip-input-menu-item.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-02-18 17:11:08 +0000
committerConor Curran <conor.curran@canonical.com>2011-02-18 17:11:08 +0000
commit80afbbce02c5d31fc4375b84c8647628333b7cc2 (patch)
tree42f29be398ca6f4fcdaaef3da2089145bdd6fbd5 /src/voip-input-menu-item.c
parent9a424c26c67544aafdd7cff2d66519b1c72e8aa0 (diff)
downloadayatana-indicator-sound-80afbbce02c5d31fc4375b84c8647628333b7cc2.tar.gz
ayatana-indicator-sound-80afbbce02c5d31fc4375b84c8647628333b7cc2.tar.bz2
ayatana-indicator-sound-80afbbce02c5d31fc4375b84c8647628333b7cc2.zip
the last bug really
Diffstat (limited to 'src/voip-input-menu-item.c')
-rw-r--r--src/voip-input-menu-item.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/voip-input-menu-item.c b/src/voip-input-menu-item.c
index b98be8d..a742654 100644
--- a/src/voip-input-menu-item.c
+++ b/src/voip-input-menu-item.c
@@ -199,6 +199,13 @@ voip_input_menu_item_is_interested (VoipInputMenuItem* item,
return TRUE;
}
+gboolean
+voip_input_menu_item_is_active (VoipInputMenuItem* item)
+{
+ VoipInputMenuItemPrivate* priv = VOIP_INPUT_MENU_ITEM_GET_PRIVATE (item);
+ return (priv->sink_input_index != NOT_ACTIVE && priv->client_index != NOT_ACTIVE);
+}
+
gboolean
voip_input_menu_item_is_populated (VoipInputMenuItem* item)