diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-25 10:39:17 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-25 10:39:17 +0100 |
commit | 36bb31d79905271ca0fc853eeddf5d23ecd10de3 (patch) | |
tree | 2cfa7075026e588dadb1d145674a420e966665ef /pluma/pluma-tab-label.c | |
parent | 9e3170e4b8de9b2120168b6de310ba839dc12072 (diff) | |
download | pluma-36bb31d79905271ca0fc853eeddf5d23ecd10de3.tar.bz2 pluma-36bb31d79905271ca0fc853eeddf5d23ecd10de3.tar.xz |
GTK3: another fix for GtkMisc deprecated commit
Diffstat (limited to 'pluma/pluma-tab-label.c')
-rw-r--r-- | pluma/pluma-tab-label.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pluma/pluma-tab-label.c b/pluma/pluma-tab-label.c index 06f72c46..1e72ec19 100644 --- a/pluma/pluma-tab-label.c +++ b/pluma/pluma-tab-label.c @@ -301,14 +301,17 @@ pluma_tab_label_init (PlumaTabLabel *tab_label) tab_label->priv->icon = icon; label = gtk_label_new (""); -#if GTK_CHECK_VERSION (3, 14, 0) - gtk_widget_set_halign (label, GTK_ALIGN_START); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (label), 0.0); +#else + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); +#endif +#if GTK_CHECK_VERSION (3, 0, 0) gtk_widget_set_margin_start (label, 0); gtk_widget_set_margin_end (label, 0); gtk_widget_set_margin_top (label, 0); gtk_widget_set_margin_bottom (label, 0); #else - gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_misc_set_padding (GTK_MISC (label), 0, 0); #endif gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); |