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-panel.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-panel.c')
-rw-r--r-- | pluma/pluma-panel.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/pluma/pluma-panel.c b/pluma/pluma-panel.c index 62b2ab24..591fc5dd 100644 --- a/pluma/pluma-panel.c +++ b/pluma/pluma-panel.c @@ -547,7 +547,11 @@ build_vertical_panel (PlumaPanel *panel) 0); panel->priv->title_label = gtk_label_new (_("Empty")); +#if GTK_CHECK_VERSION (3, 14, 0) + gtk_widget_set_halign (panel->priv->title_label, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (panel->priv->title_label), 0, 0.5); +#endif gtk_label_set_ellipsize(GTK_LABEL (panel->priv->title_label), PANGO_ELLIPSIZE_END); gtk_box_pack_start (GTK_BOX (icon_name_hbox), @@ -645,8 +649,16 @@ build_tab_label (PlumaPanel *panel, /* setup label */ label = gtk_label_new (name); +#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); + gtk_misc_set_padding (GTK_MISC (label), 0, 0); +#endif gtk_box_pack_start (GTK_BOX (label_hbox), label, TRUE, TRUE, 0); gtk_widget_set_tooltip_text (label_ebox, name); @@ -712,7 +724,11 @@ 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, 14, 0) + gtk_widget_set_halign (menu_label, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (menu_label), 0.0, 0.5); +#endif if (!gtk_widget_get_visible (item)) gtk_widget_show (item); |