[Webkit-unassigned] [Bug 15616] [GTK] Add spell checking (and grammar?)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 12 18:21:40 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=15616





------- Comment #19 from gns at gnome.org  2009-04-12 18:21 PDT -------
(In reply to comment #18)
> >  bool EditorClient::isContinuousSpellCheckingEnabled()
> >  {
> > -    notImplemented();
> > -    return false;
> > +    WebKitWebSettings* settings;
> > +    gboolean enabled;
> > +
> > +    settings = webkit_web_view_get_settings(m_webView);
> > +    g_object_get(settings, "enable-spell-checking", &enabled, NULL);
> 
> NULL or 0... the old question :)

I've been working with diego through jabber on some of this work, and we found
that this specific case makes the compiler unhappy (because it apparently looks
for NULL when figuring out whether a sentinel has been added).

> 
> > +    g_object_class_install_property(gobject_class,
> > +                                    PROP_ENABLE_SPELL_CHECKING,
> > +                                    g_param_spec_boolean(
> > +                                    "enable-spell-checking",
> > +                                    "Enable Spell Checking",
> > +                                    "Enables check-as-you-type spell checking",
> > +                                    FALSE,
> > +                                    flags));
> 
> There is a patch from Gustavo that is adding i18n to the properties as well, it
> might make sense to assume this patch was landed (if it wasn't) and use the
> glorious _() gettext macro for the summary and description.

It is now landed. Please #include <glib/gi18n-lib.h>, and add the _() markings,
yes =).


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list