[gnome-control-center] sound: try using symbolic icons for range widgets
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sound: try using symbolic icons for range widgets
- Date: Fri, 18 Feb 2011 21:34:25 +0000 (UTC)
commit ecc078edc110c2a4a8b182f8634ed3ea3ff18202
Author: William Jon McCann <jmccann redhat com>
Date: Fri Feb 18 16:33:34 2011 -0500
sound: try using symbolic icons for range widgets
Since they replace texual descriptions of "low" / "high".
https://bugzilla.gnome.org/show_bug.cgi?id=614213
panels/sound/gvc-channel-bar.c | 12 ++++++------
panels/sound/gvc-mixer-dialog.c | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/panels/sound/gvc-channel-bar.c b/panels/sound/gvc-channel-bar.c
index 716df22..a0e5a7f 100644
--- a/panels/sound/gvc-channel-bar.c
+++ b/panels/sound/gvc-channel-bar.c
@@ -829,14 +829,14 @@ gvc_channel_bar_class_init (GvcChannelBarClass *klass)
g_param_spec_string ("low-icon-name",
"Icon Name",
"Name of icon to display for this stream",
- "audio-volume-low",
+ "audio-volume-low-symbolic",
G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class,
PROP_HIGH_ICON_NAME,
g_param_spec_string ("high-icon-name",
"Icon Name",
"Name of icon to display for this stream",
- "audio-volume-high",
+ "audio-volume-high-symbolic",
G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
g_object_class_install_property (object_class,
PROP_IS_AMPLIFIED,
@@ -872,8 +872,8 @@ gvc_channel_bar_init (GvcChannelBar *bar)
bar->priv = GVC_CHANNEL_BAR_GET_PRIVATE (bar);
bar->priv->base_volume = ADJUSTMENT_MAX_NORMAL;
- bar->priv->low_icon_name = g_strdup ("audio-volume-low");
- bar->priv->high_icon_name = g_strdup ("audio-volume-high");
+ bar->priv->low_icon_name = g_strdup ("audio-volume-low-symbolic");
+ bar->priv->high_icon_name = g_strdup ("audio-volume-high-symbolic");
bar->priv->orientation = GTK_ORIENTATION_VERTICAL;
bar->priv->adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (0.0,
@@ -906,10 +906,10 @@ gvc_channel_bar_init (GvcChannelBar *bar)
bar->priv->mute_box = gtk_alignment_new (0.5, 0.5, 0, 0);
gtk_container_add (GTK_CONTAINER (bar->priv->mute_box), bar->priv->mute_button);
- bar->priv->low_image = gtk_image_new_from_icon_name ("audio-volume-low",
+ bar->priv->low_image = gtk_image_new_from_icon_name ("audio-volume-low-symbolic",
GTK_ICON_SIZE_BUTTON);
gtk_widget_set_no_show_all (bar->priv->low_image, TRUE);
- bar->priv->high_image = gtk_image_new_from_icon_name ("audio-volume-high",
+ bar->priv->high_image = gtk_image_new_from_icon_name ("audio-volume-high-symbolic",
GTK_ICON_SIZE_BUTTON);
gtk_widget_set_no_show_all (bar->priv->high_image, TRUE);
diff --git a/panels/sound/gvc-mixer-dialog.c b/panels/sound/gvc-mixer-dialog.c
index 1bd5562..84c7e00 100644
--- a/panels/sound/gvc-mixer-dialog.c
+++ b/panels/sound/gvc-mixer-dialog.c
@@ -1846,9 +1846,9 @@ gvc_mixer_dialog_constructor (GType type,
gvc_channel_bar_set_name (GVC_CHANNEL_BAR (self->priv->input_bar),
_("_Input volume: "));
gvc_channel_bar_set_low_icon_name (GVC_CHANNEL_BAR (self->priv->input_bar),
- "audio-input-microphone-low");
+ "audio-input-microphone-low-symbolic");
gvc_channel_bar_set_high_icon_name (GVC_CHANNEL_BAR (self->priv->input_bar),
- "audio-input-microphone-high");
+ "audio-input-microphone-high-symbolic");
gtk_widget_set_sensitive (self->priv->input_bar, FALSE);
alignment = gtk_alignment_new (0, 0, 1, 1);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 6, 0, 0, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]