summaryrefslogtreecommitdiff
path: root/pluma/pluma-status-combo-box.c
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-status-combo-box.c')
-rw-r--r--pluma/pluma-status-combo-box.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/pluma/pluma-status-combo-box.c b/pluma/pluma-status-combo-box.c
index 2aed6510..f138ab2c 100644
--- a/pluma/pluma-status-combo-box.c
+++ b/pluma/pluma-status-combo-box.c
@@ -279,7 +279,11 @@ pluma_status_combo_box_init (PlumaStatusComboBox *self)
gtk_widget_show (self->priv->label);
gtk_label_set_single_line_mode (GTK_LABEL (self->priv->label), TRUE);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (self->priv->label, GTK_ALIGN_START);
+#else
gtk_misc_set_alignment (GTK_MISC (self->priv->label), 0.0, 0.5);
+#endif
gtk_box_pack_start (GTK_BOX (self->priv->hbox), self->priv->label, FALSE, TRUE, 0);
@@ -287,13 +291,22 @@ pluma_status_combo_box_init (PlumaStatusComboBox *self)
gtk_widget_show (self->priv->item);
gtk_label_set_single_line_mode (GTK_LABEL (self->priv->item), TRUE);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (self->priv->item, GTK_ALIGN_START);
+#else
gtk_misc_set_alignment (GTK_MISC (self->priv->item), 0, 0.5);
+#endif
gtk_box_pack_start (GTK_BOX (self->priv->hbox), self->priv->item, TRUE, TRUE, 0);
self->priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
gtk_widget_show (self->priv->arrow);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (self->priv->arrow, GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (self->priv->arrow, GTK_ALIGN_CENTER);
+#else
gtk_misc_set_alignment (GTK_MISC (self->priv->arrow), 0.5, 0.5);
+#endif
gtk_box_pack_start (GTK_BOX (self->priv->hbox), self->priv->arrow, FALSE, TRUE, 0);