summaryrefslogtreecommitdiff
path: root/font-viewer/font-view.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-01-08 20:40:44 +0100
committerraveit65 <[email protected]>2017-02-17 12:28:22 +0100
commit99f4ac126c7bd12bc29d9c47fa90bb8b1a37301d (patch)
tree510910218608a281989215ed884c06ebb45796ab /font-viewer/font-view.c
parent239b7c8b751b2536a097797f2ea24907c1107059 (diff)
downloadmate-control-center-99f4ac126c7bd12bc29d9c47fa90bb8b1a37301d.tar.bz2
mate-control-center-99f4ac126c7bd12bc29d9c47fa90bb8b1a37301d.tar.xz
Fontviewer: do not use deprecated-gtk_misc_set_alignment-and-margin-left-right
Diffstat (limited to 'font-viewer/font-view.c')
-rw-r--r--font-viewer/font-view.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c
index df553476..6e306aa9 100644
--- a/font-viewer/font-view.c
+++ b/font-viewer/font-view.c
@@ -138,12 +138,14 @@ 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_misc_set_alignment (GTK_MISC (name_w), 1.0, 0.0);
+ gtk_widget_set_halign (name_w, GTK_ALIGN_END);
+ gtk_widget_set_valign (name_w, GTK_ALIGN_START);
gtk_container_add (GTK_CONTAINER (grid), name_w);
label = gtk_label_new (value);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
+ gtk_widget_set_valign (label, GTK_ALIGN_START);
gtk_label_set_selectable (GTK_LABEL(label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
@@ -450,8 +452,8 @@ info_button_clicked_cb (GtkButton *button,
gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_VERTICAL);
g_object_set (grid,
"margin-top", 6,
- "margin-left", 16,
- "margin-right", 16,
+ "margin-start", 16,
+ "margin-end", 16,
"margin-bottom", 6,
NULL);
gtk_grid_set_column_spacing (GTK_GRID (grid), 8);