diff options
Diffstat (limited to 'libslab/document-tile.c')
-rw-r--r-- | libslab/document-tile.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/libslab/document-tile.c b/libslab/document-tile.c index f2187b04..89f37478 100644 --- a/libslab/document-tile.c +++ b/libslab/document-tile.c @@ -690,9 +690,8 @@ create_header (const gchar *name) header = gtk_label_new (name); gtk_label_set_ellipsize (GTK_LABEL (header), PANGO_ELLIPSIZE_END); -#if GTK_CHECK_VERSION (3, 0, 0) - gtk_widget_set_halign (header, GTK_ALIGN_START); - gtk_widget_set_valign (header, GTK_ALIGN_CENTER); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (header), 0.0); #else gtk_misc_set_alignment (GTK_MISC (header), 0.0, 0.5); #endif @@ -713,9 +712,8 @@ create_subheader (const gchar *desc) subheader = gtk_label_new (desc); gtk_label_set_ellipsize (GTK_LABEL (subheader), PANGO_ELLIPSIZE_END); -#if GTK_CHECK_VERSION (3, 0, 0) - gtk_widget_set_halign (subheader, GTK_ALIGN_START); - gtk_widget_set_valign (subheader, GTK_ALIGN_CENTER); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (subheader), 0.0); #else gtk_misc_set_alignment (GTK_MISC (subheader), 0.0, 0.5); #endif @@ -810,9 +808,8 @@ rename_entry_activate_cb (GtkEntry *entry, gpointer user_data) } header = gtk_label_new (priv->basename); -#if GTK_CHECK_VERSION (3, 0, 0) - gtk_widget_set_halign (header, GTK_ALIGN_START); - gtk_widget_set_valign (header, GTK_ALIGN_CENTER); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (header), 0.0); #else gtk_misc_set_alignment (GTK_MISC (header), 0.0, 0.5); #endif |