summaryrefslogtreecommitdiff
path: root/mate-volume-control
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-03 16:10:54 +0200
committerStefano Karapetsas <[email protected]>2013-10-03 16:10:54 +0200
commit0a28e06492af1bff8cae8687629f590a0e77a103 (patch)
tree366c5c68035794e31be735bc6e98e6a289601179 /mate-volume-control
parentb91466378ca69c09b086dd8cc12533eccb04dd11 (diff)
downloadmate-media-0a28e06492af1bff8cae8687629f590a0e77a103.tar.bz2
mate-media-0a28e06492af1bff8cae8687629f590a0e77a103.tar.xz
mate-volume-control: Allow applications list to be scrolled
Closes #31 https://github.com/mate-desktop/mate-media/issues/31
Diffstat (limited to 'mate-volume-control')
-rw-r--r--mate-volume-control/src/gvc-mixer-dialog.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mate-volume-control/src/gvc-mixer-dialog.c b/mate-volume-control/src/gvc-mixer-dialog.c
index b93518c..37eaaf0 100644
--- a/mate-volume-control/src/gvc-mixer-dialog.c
+++ b/mate-volume-control/src/gvc-mixer-dialog.c
@@ -64,6 +64,7 @@ struct GvcMixerDialogPrivate
GtkWidget *input_box;
GtkWidget *output_box;
GtkWidget *applications_box;
+ GtkWidget *applications_scrolled_window;
GtkWidget *no_apps_label;
GtkWidget *output_treeview;
GtkWidget *output_settings_box;
@@ -1960,11 +1961,18 @@ gvc_mixer_dialog_constructor (GType type,
gtk_container_add (GTK_CONTAINER (box), self->priv->output_settings_box);
/* Applications */
+ self->priv->applications_scrolled_window = gtk_scrolled_window_new (NULL, NULL);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (self->priv->applications_scrolled_window),
+ GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (self->priv->applications_scrolled_window),
+ GTK_SHADOW_IN);
self->priv->applications_box = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (self->priv->applications_box), 12);
+ gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (self->priv->applications_scrolled_window),
+ self->priv->applications_box);
label = gtk_label_new (_("Applications"));
gtk_notebook_append_page (GTK_NOTEBOOK (self->priv->notebook),
- self->priv->applications_box,
+ self->priv->applications_scrolled_window,
label);
self->priv->no_apps_label = gtk_label_new (_("No application is currently playing or recording audio."));
gtk_box_pack_start (GTK_BOX (self->priv->applications_box),