summaryrefslogtreecommitdiff
path: root/plugins/taglist/pluma-taglist-plugin-panel.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-18 21:15:02 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-01 22:43:09 +0100
commit6454339a1a2141ff8d33dce2dfff4fd0fc52b227 (patch)
tree2129ccc507ea6d66d8216573879a8320f8c588be /plugins/taglist/pluma-taglist-plugin-panel.c
parentdc6b2065db9aa22aac346adaf337fb868b959f11 (diff)
downloadpluma-6454339a1a2141ff8d33dce2dfff4fd0fc52b227.tar.bz2
pluma-6454339a1a2141ff8d33dce2dfff4fd0fc52b227.tar.xz
Gtk+-3.14: don't use deprecated GtkMisc
Diffstat (limited to 'plugins/taglist/pluma-taglist-plugin-panel.c')
-rwxr-xr-xplugins/taglist/pluma-taglist-plugin-panel.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/taglist/pluma-taglist-plugin-panel.c b/plugins/taglist/pluma-taglist-plugin-panel.c
index b4880ca0..13e5a83a 100755
--- a/plugins/taglist/pluma-taglist-plugin-panel.c
+++ b/plugins/taglist/pluma-taglist-plugin-panel.c
@@ -645,8 +645,17 @@ add_preview_widget (PlumaTaglistPluginPanel *panel)
gtk_label_set_line_wrap (GTK_LABEL (panel->priv->preview), TRUE);
gtk_label_set_use_markup (GTK_LABEL (panel->priv->preview), TRUE);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (panel->priv->preview, GTK_ALIGN_START);
+ gtk_widget_set_valign (panel->priv->preview, GTK_ALIGN_START);
+ gtk_widget_set_margin_start (panel->priv->preview, 6);
+ gtk_widget_set_margin_end (panel->priv->preview, 6);
+ gtk_widget_set_margin_top (panel->priv->preview, 6);
+ gtk_widget_set_margin_bottom (panel->priv->preview, 6);
+#else
gtk_misc_set_alignment (GTK_MISC (panel->priv->preview), 0, 0);
- gtk_misc_set_padding (GTK_MISC (panel->priv->preview), 6, 6);
+ gtk_misc_set_padding (GTK_MISC (panel->priv->preview), 6, 6);
+#endif
gtk_label_set_selectable (GTK_LABEL (panel->priv->preview), TRUE);
gtk_label_set_selectable (GTK_LABEL (panel->priv->preview), TRUE);
gtk_label_set_ellipsize (GTK_LABEL (panel->priv->preview),