[gnome-control-center] sound: Fix sizing of sliders
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] sound: Fix sizing of sliders
- Date: Fri, 26 Aug 2011 22:12:51 +0000 (UTC)
commit 9c530a43e29aca317ef31e3361796194a1279795
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 26 23:12:31 2011 +0100
sound: Fix sizing of sliders
panels/sound/gvc-mixer-dialog.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/panels/sound/gvc-mixer-dialog.c b/panels/sound/gvc-mixer-dialog.c
index 8eb7630..b24e1a3 100644
--- a/panels/sound/gvc-mixer-dialog.c
+++ b/panels/sound/gvc-mixer-dialog.c
@@ -960,13 +960,14 @@ save_bar_for_stream (GvcMixerDialog *dialog,
static GtkWidget *
create_bar (GvcMixerDialog *dialog,
+ gboolean add_to_size_group,
gboolean symmetric)
{
GtkWidget *bar;
bar = gvc_channel_bar_new ();
gtk_widget_set_sensitive (bar, FALSE);
- if (dialog->priv->size_group != NULL) {
+ if (add_to_size_group && dialog->priv->size_group != NULL) {
gvc_channel_bar_set_size_group (GVC_CHANNEL_BAR (bar),
dialog->priv->size_group,
symmetric);
@@ -989,7 +990,7 @@ create_app_bar (GvcMixerDialog *dialog,
{
GtkWidget *bar;
- bar = create_bar (dialog, FALSE);
+ bar = create_bar (dialog, FALSE, FALSE);
gvc_channel_bar_set_ellipsize (GVC_CHANNEL_BAR (bar), TRUE);
gvc_channel_bar_set_icon_name (GVC_CHANNEL_BAR (bar), icon_name);
if (name == NULL || strchr (name, '_') == NULL) {
@@ -1780,7 +1781,7 @@ gvc_mixer_dialog_constructor (GType type,
gtk_box_pack_start (GTK_BOX (main_vbox),
alignment,
FALSE, FALSE, 0);
- self->priv->output_bar = create_bar (self, TRUE);
+ self->priv->output_bar = create_bar (self, TRUE, TRUE);
gvc_channel_bar_set_name (GVC_CHANNEL_BAR (self->priv->output_bar),
_("_Output volume:"));
gtk_widget_set_sensitive (self->priv->output_bar, FALSE);
@@ -1801,7 +1802,7 @@ gvc_mixer_dialog_constructor (GType type,
self->priv->sound_effects_box,
label);
- self->priv->effects_bar = create_bar (self, TRUE);
+ self->priv->effects_bar = create_bar (self, TRUE, TRUE);
gvc_channel_bar_set_name (GVC_CHANNEL_BAR (self->priv->effects_bar),
_("_Alert volume:"));
gtk_widget_set_sensitive (self->priv->effects_bar, FALSE);
@@ -1865,7 +1866,7 @@ gvc_mixer_dialog_constructor (GType type,
self->priv->input_box,
label);
- self->priv->input_bar = create_bar (self, TRUE);
+ self->priv->input_bar = create_bar (self, TRUE, TRUE);
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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]