diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-10-26 23:08:10 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2015-10-26 23:08:10 +0000 |
| commit | 90304918ce5c902b33d0962952db9f8cfbc87dd2 (patch) | |
| tree | c203177faf4fd0a423ebc6f92e07ef907afcf354 /src/ui/dialog/text-edit.cpp | |
| parent | Added a option to pick down color (diff) | |
| parent | add gtk3 experimental support in CMake (diff) | |
| download | inkscape-90304918ce5c902b33d0962952db9f8cfbc87dd2.tar.gz inkscape-90304918ce5c902b33d0962952db9f8cfbc87dd2.zip | |
update to trunk
(bzr r14422.1.15)
Diffstat (limited to 'src/ui/dialog/text-edit.cpp')
| -rw-r--r-- | src/ui/dialog/text-edit.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ui/dialog/text-edit.cpp b/src/ui/dialog/text-edit.cpp index 7575cc854..cf53e1441 100644 --- a/src/ui/dialog/text-edit.cpp +++ b/src/ui/dialog/text-edit.cpp @@ -175,6 +175,19 @@ TextEdit::TextEdit() gtk_text_view_set_wrap_mode ((GtkTextView *) text_view, GTK_WRAP_WORD); #ifdef WITH_GTKSPELL +#ifdef WITH_GTKMM_3_0 +/* + TODO: Use computed xml:lang attribute of relevant element, if present, to specify the + language (either as 2nd arg of gtkspell_new_attach, or with explicit + gtkspell_set_language call in; see advanced.c example in gtkspell docs). + onReadSelection looks like a suitable place. +*/ + GtkSpellChecker * speller = gtk_spell_checker_new(); + + if (! gtk_spell_checker_attach(speller, GTK_TEXT_VIEW(text_view))) { + g_print("gtkspell error:\n"); + } +#else GError *error = NULL; /* @@ -188,6 +201,7 @@ TextEdit::TextEdit() g_error_free(error); } #endif +#endif gtk_widget_set_size_request (text_view, -1, 64); gtk_text_view_set_editable (GTK_TEXT_VIEW (text_view), TRUE); |
