summaryrefslogtreecommitdiff
path: root/mate-volume-control/gvc-combo-box.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-volume-control/gvc-combo-box.c')
-rw-r--r--mate-volume-control/gvc-combo-box.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mate-volume-control/gvc-combo-box.c b/mate-volume-control/gvc-combo-box.c
index c43f05d..29e49b5 100644
--- a/mate-volume-control/gvc-combo-box.c
+++ b/mate-volume-control/gvc-combo-box.c
@@ -354,7 +354,13 @@ gvc_combo_box_init (GvcComboBox *combobox)
combobox->priv->combobox = gtk_combo_box_new_with_model (combobox->priv->model);
combobox->priv->label = gtk_label_new (NULL);
+
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_label_set_xalign (GTK_LABEL (combobox->priv->label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (combobox->priv->label), 0.5);
+#else
gtk_misc_set_alignment (GTK_MISC (combobox->priv->label), 0.0, 0.5);
+#endif
gtk_label_set_mnemonic_widget (GTK_LABEL (combobox->priv->label),
combobox->priv->combobox);