summaryrefslogtreecommitdiff
path: root/src/terminal-info-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal-info-bar.c')
-rw-r--r--src/terminal-info-bar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/terminal-info-bar.c b/src/terminal-info-bar.c
index 5e60f21..63c91d6 100644
--- a/src/terminal-info-bar.c
+++ b/src/terminal-info-bar.c
@@ -117,7 +117,12 @@ terminal_info_bar_format_text (TerminalInfoBar *bar,
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
gtk_label_set_selectable (GTK_LABEL (label), TRUE);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (label), 0.0);
+#else
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
+#endif
gtk_box_pack_start (GTK_BOX (priv->content_box), label, FALSE, FALSE, 0);
gtk_widget_show_all (priv->content_box);