diff options
author | monsta <[email protected]> | 2016-01-15 13:39:24 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-15 13:39:24 +0300 |
commit | 854d41818845e0c89ae71add54a16d69419e8083 (patch) | |
tree | c82289f4aa9bb38647c7da8d1a102a0b2a6c6833 /libslab/application-tile.c | |
parent | a632460eead10a87a9e24007bc911ab746c2a5b8 (diff) | |
download | mate-control-center-854d41818845e0c89ae71add54a16d69419e8083.tar.bz2 mate-control-center-854d41818845e0c89ae71add54a16d69419e8083.tar.xz |
[GTK+3] libslab: fix deprecated usage of GtkMisc
Diffstat (limited to 'libslab/application-tile.c')
-rw-r--r-- | libslab/application-tile.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libslab/application-tile.c b/libslab/application-tile.c index 1bcd10d5..88fe066a 100644 --- a/libslab/application-tile.c +++ b/libslab/application-tile.c @@ -402,7 +402,12 @@ create_header (const gchar *name) header = gtk_label_new (name); gtk_label_set_line_wrap (GTK_LABEL (header), TRUE); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_set_halign (header, GTK_ALIGN_START); + gtk_widget_set_valign (header, GTK_ALIGN_CENTER); +#else gtk_misc_set_alignment (GTK_MISC (header), 0.0, 0.5); +#endif g_signal_connect ( G_OBJECT (header), @@ -421,7 +426,12 @@ 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); +#else gtk_misc_set_alignment (GTK_MISC (subheader), 0.0, 0.5); +#endif gtk_widget_modify_fg ( subheader, GTK_STATE_NORMAL, |