summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-03-08 10:43:05 +0100
committerraveit65 <[email protected]>2017-03-08 10:43:05 +0100
commit43621dcc30ccf4244cc005752b19511f3353523e (patch)
tree497b4d52a7d3da9de4d880a993b07aff22e5e75e
parent7f26a7ab0fd5d76fbeeadb69f8a2aa22951baa71 (diff)
downloadmate-control-center-43621dcc30ccf4244cc005752b19511f3353523e.tar.bz2
mate-control-center-43621dcc30ccf4244cc005752b19511f3353523e.tar.xz
font-viewer: fix former deprecation commit of gtk_misc_set_alignment
-rw-r--r--font-viewer/font-view.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c
index a7b57ea4..c08eff1e 100644
--- a/font-viewer/font-view.c
+++ b/font-viewer/font-view.c
@@ -138,14 +138,22 @@ add_row (GtkWidget *grid,
name_w = gtk_label_new (name);
gtk_style_context_add_class (gtk_widget_get_style_context (name_w), "dim-label");
- gtk_widget_set_halign (name_w, GTK_ALIGN_END);
- gtk_widget_set_valign (name_w, GTK_ALIGN_START);
+#if GTK_CHECK_VERSION (3, 16, 0)
+ gtk_label_set_xalign (GTK_LABEL (name_w), 1.0);
+ gtk_label_set_yalign (GTK_LABEL (name_w), 0.0);
+ #else
+ gtk_misc_set_alignment (GTK_MISC (name_w), 1.0, 0.0);
+ #endif
gtk_container_add (GTK_CONTAINER (grid), name_w);
label = gtk_label_new (value);
- gtk_widget_set_halign (label, GTK_ALIGN_START);
- gtk_widget_set_valign (label, GTK_ALIGN_START);
+#if GTK_CHECK_VERSION (3, 16, 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_label_set_selectable (GTK_LABEL(label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);