[gnome-control-center] sound: Default to horizontal channel bars
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sound: Default to horizontal channel bars
- Date: Tue, 17 Mar 2015 11:22:26 +0000 (UTC)
commit 857f6ea8efebe3547393fca8ebfecb8fb2922c60
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 17 11:33:17 2015 +0100
sound: Default to horizontal channel bars
This stops unnecessary orientation changes on panel startup.
panels/sound/gvc-channel-bar.c | 4 ++--
panels/sound/gvc-mixer-dialog.c | 4 ----
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/panels/sound/gvc-channel-bar.c b/panels/sound/gvc-channel-bar.c
index f8d64a2..6d5a319 100644
--- a/panels/sound/gvc-channel-bar.c
+++ b/panels/sound/gvc-channel-bar.c
@@ -804,7 +804,7 @@ gvc_channel_bar_class_init (GvcChannelBarClass *klass)
"Orientation",
"The orientation of the scale",
GTK_TYPE_ORIENTATION,
- GTK_ORIENTATION_VERTICAL,
+ GTK_ORIENTATION_HORIZONTAL,
G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_IS_MUTED,
@@ -894,7 +894,7 @@ gvc_channel_bar_init (GvcChannelBar *bar)
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->orientation = GTK_ORIENTATION_HORIZONTAL;
bar->priv->adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (0.0,
0.0,
ADJUSTMENT_MAX_NORMAL,
diff --git a/panels/sound/gvc-mixer-dialog.c b/panels/sound/gvc-mixer-dialog.c
index a9e314c..63d2b0f 100644
--- a/panels/sound/gvc-mixer-dialog.c
+++ b/panels/sound/gvc-mixer-dialog.c
@@ -769,8 +769,6 @@ create_bar (GvcMixerDialog *dialog,
dialog->priv->size_group,
symmetric);
}
- gvc_channel_bar_set_orientation (GVC_CHANNEL_BAR (bar),
- GTK_ORIENTATION_HORIZONTAL);
gvc_channel_bar_set_show_mute (GVC_CHANNEL_BAR (bar),
TRUE);
g_signal_connect (bar,
@@ -1714,8 +1712,6 @@ gvc_mixer_dialog_constructor (GType type,
gtk_size_group_add_widget (self->priv->size_group, sbox);
self->priv->input_level_bar = gvc_level_bar_new ();
- gvc_level_bar_set_orientation (GVC_LEVEL_BAR (self->priv->input_level_bar),
- GTK_ORIENTATION_HORIZONTAL);
gvc_level_bar_set_scale (GVC_LEVEL_BAR (self->priv->input_level_bar),
GVC_LEVEL_SCALE_LINEAR);
gtk_box_pack_start (GTK_BOX (box),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]