Bug 94683

Summary: [GTK] Preferred languages and spellchecker APIs are not consistent in WebKit2
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: alex, gustavo, mario, mrobinson, pnormand, webkit.review.bot, xan.lopez
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch alex: review+

Description Carlos Garcia Campos 2012-08-22 02:07:20 PDT
API to get/set spellchecking languages, uses a string containing a list of languages separated by commas. We are splitting the list into a vector to update the enchant dictionaries, and building a comma separated string from enchant dictionaries to return the list of languages. On the other hand, set_preferred_languages receives a GList of string with the language identifiers. It would be more convenient to use  a GStrv in both cases (we avoid unnecessary split/join in spellchecker case), and would result in a more consistent API.
Comment 1 Carlos Garcia Campos 2012-08-22 02:15:20 PDT
Created attachment 159886 [details]
Patch

This is an api break so it would be great to land it before the release.
Comment 2 WebKit Review Bot 2012-08-22 02:16:29 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 3 Mario Sanchez Prada 2012-08-22 02:56:00 PDT
As the author of the previous version of this API, I must say I agree with this change and that the current patch looks good to me too
Comment 4 Alejandro G. Castro 2012-08-22 06:23:35 PDT
Comment on attachment 159886 [details]
Patch

LGTM!
Comment 5 Carlos Garcia Campos 2012-08-22 06:33:56 PDT
Committed r126298: <http://trac.webkit.org/changeset/126298>