summaryrefslogtreecommitdiff
path: root/font-viewer/font-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'font-viewer/font-view.c')
-rw-r--r--font-viewer/font-view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c
index 2b416a02..0bd32be1 100644
--- a/font-viewer/font-view.c
+++ b/font-viewer/font-view.c
@@ -255,9 +255,9 @@ add_row (GtkWidget *table,
bold_name = g_strconcat ("<b>", name, "</b>", NULL);
name_w = gtk_label_new (bold_name);
g_free (bold_name);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (name_w, GTK_ALIGN_START);
- gtk_widget_set_valign (name_w, GTK_ALIGN_START);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (name_w), 0.0);
+ gtk_label_set_yalign (GTK_LABEL (name_w), 0.0);
#else
gtk_misc_set_alignment (GTK_MISC (name_w), 0.0, 0.0);
#endif