diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-11-18 21:15:02 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-01 22:43:09 +0100 |
commit | 6454339a1a2141ff8d33dce2dfff4fd0fc52b227 (patch) | |
tree | 2129ccc507ea6d66d8216573879a8320f8c588be /pluma/pluma-tab-label.c | |
parent | dc6b2065db9aa22aac346adaf337fb868b959f11 (diff) | |
download | pluma-6454339a1a2141ff8d33dce2dfff4fd0fc52b227.tar.bz2 pluma-6454339a1a2141ff8d33dce2dfff4fd0fc52b227.tar.xz |
Gtk+-3.14: don't use deprecated GtkMisc
Diffstat (limited to 'pluma/pluma-tab-label.c')
-rw-r--r-- | pluma/pluma-tab-label.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pluma/pluma-tab-label.c b/pluma/pluma-tab-label.c index d372f7c0..06f72c46 100644 --- a/pluma/pluma-tab-label.c +++ b/pluma/pluma-tab-label.c @@ -301,8 +301,16 @@ 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); + 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); tab_label->priv->label = label; |