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-panel.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-panel.c')
-rw-r--r-- | pluma/pluma-panel.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pluma/pluma-panel.c b/pluma/pluma-panel.c index c8b0cc56..0fa999b0 100644 --- a/pluma/pluma-panel.c +++ b/pluma/pluma-panel.c @@ -649,14 +649,17 @@ build_tab_label (PlumaPanel *panel, /* setup label */ label = gtk_label_new (name); -#if GTK_CHECK_VERSION (3, 0, 0) +#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 (label_hbox), label, TRUE, TRUE, 0); @@ -724,8 +727,8 @@ pluma_panel_add_item (PlumaPanel *panel, tab_label = build_tab_label (panel, item, data->name, data->icon); menu_label = gtk_label_new (name); -#if GTK_CHECK_VERSION (3, 0, 0) - gtk_widget_set_halign (menu_label, GTK_ALIGN_START); +#if GTK_CHECK_VERSION (3, 16, 0) + gtk_label_set_xalign (GTK_LABEL (menu_label), 0.0); #else gtk_misc_set_alignment (GTK_MISC (menu_label), 0.0, 0.5); #endif |