summaryrefslogtreecommitdiff
path: root/plugins/spell
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/spell
parentdc6b2065db9aa22aac346adaf337fb868b959f11 (diff)
downloadpluma-6454339a1a2141ff8d33dce2dfff4fd0fc52b227.tar.bz2
pluma-6454339a1a2141ff8d33dce2dfff4fd0fc52b227.tar.xz
Gtk+-3.14: don't use deprecated GtkMisc
Diffstat (limited to 'plugins/spell')
-rwxr-xr-xplugins/spell/pluma-automatic-spell-checker.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/spell/pluma-automatic-spell-checker.c b/plugins/spell/pluma-automatic-spell-checker.c
index d3644445..f4de8835 100755
--- a/plugins/spell/pluma-automatic-spell-checker.c
+++ b/plugins/spell/pluma-automatic-spell-checker.c
@@ -454,7 +454,11 @@ build_suggestion_menu (PlumaAutomaticSpellChecker *spell, const gchar *word)
label = gtk_label_new (label_text);
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
+#else
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+#endif
mi = gtk_menu_item_new ();
gtk_container_add (GTK_CONTAINER(mi), label);