[gnome-flashback/gnome-3-24] sound-applet: remove status notifier items
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/gnome-3-24] sound-applet: remove status notifier items
- Date: Tue, 28 Mar 2017 15:09:50 +0000 (UTC)
commit 3b2fd357d640eb5e861a9b542678e02057f39544
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Mar 28 18:09:08 2017 +0300
sound-applet: remove status notifier items
gnome-flashback/libsound-applet/gf-sound-applet.c | 33 ---------------------
1 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/gnome-flashback/libsound-applet/gf-sound-applet.c
b/gnome-flashback/libsound-applet/gf-sound-applet.c
index 315333e..e9c85bf 100644
--- a/gnome-flashback/libsound-applet/gf-sound-applet.c
+++ b/gnome-flashback/libsound-applet/gf-sound-applet.c
@@ -60,9 +60,6 @@ struct _GfSoundApplet
GvcStreamStatusIcon *input_status_icon;
GvcStreamStatusIcon *output_status_icon;
GvcMixerControl *control;
-
- GfSoundItem *output_item;
- GfSoundItem *input_item;
};
G_DEFINE_TYPE (GfSoundApplet, gf_sound_applet, G_TYPE_OBJECT)
@@ -85,11 +82,6 @@ maybe_show_status_icons (GfSoundApplet *applet)
gtk_status_icon_set_visible (GTK_STATUS_ICON (applet->output_status_icon), show);
G_GNUC_END_IGNORE_DEPRECATIONS
- if (show)
- sn_item_register (SN_ITEM (applet->output_item));
- else
- sn_item_unregister (SN_ITEM (applet->output_item));
-
show = FALSE;
stream = gvc_mixer_control_get_default_source (applet->control);
source_outputs = gvc_mixer_control_get_source_outputs (applet->control);
@@ -123,11 +115,6 @@ maybe_show_status_icons (GfSoundApplet *applet)
gtk_status_icon_set_visible (GTK_STATUS_ICON (applet->input_status_icon), show);
G_GNUC_END_IGNORE_DEPRECATIONS
- if (show)
- sn_item_register (SN_ITEM (applet->input_item));
- else
- sn_item_unregister (SN_ITEM (applet->input_item));
-
g_slist_free (source_outputs);
}
@@ -141,7 +128,6 @@ update_default_sink (GfSoundApplet *applet)
if (stream != NULL)
{
gvc_stream_status_icon_set_mixer_stream (applet->output_status_icon, stream);
- gf_sound_item_set_mixer_stream (applet->output_item, stream);
maybe_show_status_icons (applet);
}
else
@@ -160,7 +146,6 @@ update_default_source (GfSoundApplet *applet)
if (stream != NULL)
{
gvc_stream_status_icon_set_mixer_stream (applet->input_status_icon, stream);
- gf_sound_item_set_mixer_stream (applet->input_item, stream);
maybe_show_status_icons (applet);
}
else
@@ -275,9 +260,6 @@ gf_sound_applet_dispose (GObject *object)
g_clear_object (&applet->input_status_icon);
g_clear_object (&applet->control);
- g_clear_object (&applet->output_item);
- g_clear_object (&applet->input_item);
-
G_OBJECT_CLASS (gf_sound_applet_parent_class)->dispose (object);
}
@@ -296,7 +278,6 @@ static void
gf_sound_applet_init (GfSoundApplet *applet)
{
GvcStreamStatusIcon *icon;
- SnItemCategory category;
/* Output icon */
icon = gvc_stream_status_icon_new (NULL, output_icons);
@@ -317,20 +298,6 @@ gf_sound_applet_init (GfSoundApplet *applet)
G_GNUC_END_IGNORE_DEPRECATIONS
applet->input_status_icon = icon;
-
- category = SN_ITEM_CATEGORY_HARDWARE;
-
- applet->output_item = gf_sound_item_new (category,
- "gf-sound-output",
- _("Sound Output Volume"),
- _("Output"),
- output_icons);
-
- applet->input_item = gf_sound_item_new (category,
- "gf-sound-input",
- _("Microphone Volume"),
- _("Input"),
- input_icons);
}
GfSoundApplet *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]