diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-26 13:00:17 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-26 13:00:17 +0100 |
commit | 9c22af1831f1e150aac020c0f27d1510d0aecee9 (patch) | |
tree | fd6a0f5d90e132bdeda67c7fa066ab3c22da63ff /font-viewer | |
parent | 94f5031d58bc9f6cbb2911d1c6a3a5d16a69af45 (diff) | |
download | mate-control-center-9c22af1831f1e150aac020c0f27d1510d0aecee9.tar.bz2 mate-control-center-9c22af1831f1e150aac020c0f27d1510d0aecee9.tar.xz |
GTK3: improve GtkMisc deprecation commit
Diffstat (limited to 'font-viewer')
-rw-r--r-- | font-viewer/font-view.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c index 359ffcb5..08747f33 100644 --- a/font-viewer/font-view.c +++ b/font-viewer/font-view.c @@ -279,9 +279,9 @@ add_row (GtkWidget *table, gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); gtk_label_set_selectable (GTK_LABEL (label), TRUE); gtk_widget_set_size_request (label, 200, -1); -#if GTK_CHECK_VERSION (3, 0, 0) - 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 @@ -320,9 +320,9 @@ add_row (GtkWidget *table, gtk_container_add (GTK_CONTAINER (viewport), label); } else { GtkWidget *label = gtk_label_new (value); -#if GTK_CHECK_VERSION (3, 0, 0) - gtk_widget_set_halign (label, GTK_ALIGN_START); - gtk_widget_set_valign (label, GTK_ALIGN_CENTER); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (label), 0.0); + gtk_label_set_yalign (GTK_LABEL (label), 0.5); #else gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); #endif |