From 7dbd1b882441baf49c56592c164f4dc2a4e67107 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Mon, 9 Jul 2018 17:48:12 +0200 Subject: sidebar: replace deprecated gtk_misc_set_alignment --- src/eom-metadata-sidebar.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/eom-metadata-sidebar.c b/src/eom-metadata-sidebar.c index e9b6e0e..5d6a5ad 100644 --- a/src/eom-metadata-sidebar.c +++ b/src/eom-metadata-sidebar.c @@ -136,14 +136,16 @@ _gtk_grid_append_prop_line (GtkGrid *grid, GtkWidget *sibling, gtk_label_set_markup (GTK_LABEL(label), markup); g_free (markup); - gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0); + gtk_label_set_xalign (GTK_LABEL (label), 0); + gtk_label_set_yalign (GTK_LABEL (label), 1); gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0); if (G_LIKELY (data_label != NULL)) { *data_label = gtk_label_new (NULL); gtk_label_set_selectable (GTK_LABEL (*data_label), TRUE); gtk_label_set_line_wrap (GTK_LABEL(*data_label), TRUE); - gtk_misc_set_alignment (GTK_MISC (*data_label), 0.0, 0.0); + gtk_label_set_xalign (GTK_LABEL (*data_label), 0); + gtk_label_set_yalign (GTK_LABEL (*data_label), 0); // Add a small margin to make it a sublabel to the first label gtk_widget_set_margin_start (*data_label, 12); gtk_box_pack_end (GTK_BOX(box), *data_label, FALSE, FALSE, 0); -- cgit v1.2.1