summaryrefslogtreecommitdiff
path: root/typing-break
diff options
context:
space:
mode:
Diffstat (limited to 'typing-break')
-rw-r--r--typing-break/drw-break-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/typing-break/drw-break-window.c b/typing-break/drw-break-window.c
index 80f71ef4..5ebe92d7 100644
--- a/typing-break/drw-break-window.c
+++ b/typing-break/drw-break-window.c
@@ -282,9 +282,9 @@ drw_break_window_init (DrwBreakWindow *window)
priv->clock_label = gtk_label_new (NULL);
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_set_halign (priv->clock_label, GTK_ALIGN_CENTER);
- gtk_widget_set_valign (priv->clock_label, GTK_ALIGN_CENTER);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (priv->clock_label), 0.5);
+ gtk_label_set_yalign (GTK_LABEL (priv->clock_label), 0.5);
#else
gtk_misc_set_alignment (GTK_MISC (priv->clock_label), 0.5, 0.5);
#endif