summaryrefslogtreecommitdiff
path: root/mate-volume-control/gvc-mixer-dialog.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-20 14:07:11 +0300
committermonsta <[email protected]>2016-01-20 14:07:11 +0300
commit3447078bdbfc279c92f09f4bcb102d73e220cd41 (patch)
tree132ee0a84e8879e07e1a32730809977350fceacf /mate-volume-control/gvc-mixer-dialog.c
parent086496e0aaa056bc894ac7dab5c60eb0f9c34645 (diff)
downloadmate-media-3447078bdbfc279c92f09f4bcb102d73e220cd41.tar.bz2
mate-media-3447078bdbfc279c92f09f4bcb102d73e220cd41.tar.xz
use GtkBox instead of GtkVBox/GtkHBox in both GTK+ builds
and fix deprecated usage of GtkHBox and GtkVBox in GTK+3 build
Diffstat (limited to 'mate-volume-control/gvc-mixer-dialog.c')
-rw-r--r--mate-volume-control/gvc-mixer-dialog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mate-volume-control/gvc-mixer-dialog.c b/mate-volume-control/gvc-mixer-dialog.c
index f2fd978..6bb8e7a 100644
--- a/mate-volume-control/gvc-mixer-dialog.c
+++ b/mate-volume-control/gvc-mixer-dialog.c
@@ -2125,7 +2125,11 @@ gvc_mixer_dialog_constructor (GType type,
gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE);
/* Output page */
+#if GTK_CHECK_VERSION (3, 0, 0)
+ self->priv->output_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
+#else
self->priv->output_box = gtk_vbox_new (FALSE, 12);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (self->priv->output_box), 12);
label = gtk_label_new (_("Output"));
gtk_notebook_append_page (GTK_NOTEBOOK (self->priv->notebook),
@@ -2164,7 +2168,11 @@ gvc_mixer_dialog_constructor (GType type,
make_label_bold (GTK_LABEL (label));
gtk_frame_set_shadow_type (GTK_FRAME (box), GTK_SHADOW_NONE);
gtk_box_pack_start (GTK_BOX (self->priv->output_box), box, FALSE, FALSE, 12);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ self->priv->output_settings_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+#else
self->priv->output_settings_box = gtk_vbox_new (FALSE, 0);
+#endif
gtk_container_add (GTK_CONTAINER (box), self->priv->output_settings_box);
self->priv->output_settings_frame = box;