diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-02-04 23:20:35 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-02-04 23:20:35 +0100 |
commit | 0d0308a2b88f98ac15cbc871088454656a2c2164 (patch) | |
tree | cef25bd7e8afa659e36ed4fcf062aaa70aead229 /mate-volume-control/gvc-channel-bar.c | |
parent | b5fe153a571e412d7db9edde6d9f69900e02db53 (diff) | |
download | mate-media-0d0308a2b88f98ac15cbc871088454656a2c2164.tar.bz2 mate-media-0d0308a2b88f98ac15cbc871088454656a2c2164.tar.xz |
GTK+3:fix GtkMisc deprecations for < gtk+-3.16
Diffstat (limited to 'mate-volume-control/gvc-channel-bar.c')
-rw-r--r-- | mate-volume-control/gvc-channel-bar.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mate-volume-control/gvc-channel-bar.c b/mate-volume-control/gvc-channel-bar.c index 70f17ec..b1b54ae 100644 --- a/mate-volume-control/gvc-channel-bar.c +++ b/mate-volume-control/gvc-channel-bar.c @@ -354,11 +354,14 @@ update_marks (GvcChannelBar *bar) gtk_widget_set_valign (bar->priv->low_image, GTK_ALIGN_START); gtk_widget_set_halign (bar->priv->high_image, GTK_ALIGN_CENTER); gtk_widget_set_valign (bar->priv->high_image, GTK_ALIGN_START); - gtk_label_set_xalign (GTK_LABEL (bar->priv->label), 0.0); - gtk_label_set_yalign (GTK_LABEL (bar->priv->label), 0.0); #else gtk_misc_set_alignment (GTK_MISC (bar->priv->low_image), 0.5, 0.0); gtk_misc_set_alignment (GTK_MISC (bar->priv->high_image), 0.5, 0.0); +#endif +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (bar->priv->label), 0.0); + gtk_label_set_yalign (GTK_LABEL (bar->priv->label), 0.0); +#else gtk_misc_set_alignment (GTK_MISC (bar->priv->label), 0.0, 0.0); #endif } else { @@ -369,11 +372,14 @@ update_marks (GvcChannelBar *bar) gtk_widget_set_valign (bar->priv->low_image, GTK_ALIGN_CENTER); gtk_widget_set_halign (bar->priv->high_image, GTK_ALIGN_CENTER); gtk_widget_set_valign (bar->priv->high_image, GTK_ALIGN_CENTER); - gtk_label_set_xalign (GTK_LABEL (bar->priv->label), 0.0); - gtk_label_set_yalign (GTK_LABEL (bar->priv->label), 0.5); #else gtk_misc_set_alignment (GTK_MISC (bar->priv->low_image), 0.5, 0.5); gtk_misc_set_alignment (GTK_MISC (bar->priv->high_image), 0.5, 0.5); +#endif +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (bar->priv->label), 0.0); + gtk_label_set_yalign (GTK_LABEL (bar->priv->label), 0.5); +#else gtk_misc_set_alignment (GTK_MISC (bar->priv->label), 0.0, 0.5); #endif } |