After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 693783 - wip/locale-info squashed patch
wip/locale-info squashed patch
Status: RESOLVED FIXED
Product: gnome-desktop
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
Depends on:
Blocks: 692219 692700 693773 693774 693775
 
 
Reported: 2013-02-14 10:48 UTC by Rui Matos
Modified: 2013-02-19 11:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
squashed patch from wip/locale-info (41.08 KB, patch)
2013-02-14 10:48 UTC, Rui Matos
reviewed Details | Review
squashed patch from wip/locale-info (41.06 KB, patch)
2013-02-18 12:57 UTC, Rui Matos
committed Details | Review

Description Rui Matos 2013-02-14 10:48:06 UTC
Created attachment 236033 [details] [review]
squashed patch from wip/locale-info

Here's the squashed patch from the wip/locale-info branch to make it easier to review.
Comment 1 Bastien Nocera 2013-02-14 11:21:38 UTC
Review of attachment 236033 [details] [review]:

Looks fine overall.

::: libgnome-desktop/default-input-sources.h
@@ +6,3 @@
+} DefaultInputSource;
+
+static DefaultInputSource default_input_sources[] =

Add some details about the source of this information somewhere.

::: libgnome-desktop/gnome-languages.h
@@ +43,3 @@
+char *        gnome_normalize_locale            (const char *locale);
+gboolean      gnome_language_has_translations   (const char *code);
+char *        gnome_get_language_from_code      (const char *code,

"code" being? "language code"? "country code"? which ISO?

::: libgnome-desktop/gnome-xkb-info.c
@@ +306,3 @@
+      if (!priv->current_parser_layout->xkb_name)
+        {
+          g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,

This seems to be unrelated bug fixes, make sure to split.
Comment 2 Rui Matos 2013-02-14 13:12:46 UTC
(In reply to comment #1)
> Review of attachment 236033 [details] [review]:
> 
> Looks fine overall.
> 
> ::: libgnome-desktop/default-input-sources.h
> @@ +6,3 @@
> +} DefaultInputSource;
> +
> +static DefaultInputSource default_input_sources[] =
> 
> Add some details about the source of this information somewhere.

Ok, I edited the commit message.

> ::: libgnome-desktop/gnome-languages.h
> @@ +43,3 @@
> +char *        gnome_normalize_locale            (const char *locale);
> +gboolean      gnome_language_has_translations   (const char *code);
> +char *        gnome_get_language_from_code      (const char *code,
> 
> "code" being? "language code"? "country code"? which ISO?

It's specified in the gtk-doc comment. Being language_from_code is IMO clear that it's a language code.

> ::: libgnome-desktop/gnome-xkb-info.c
> @@ +306,3 @@
> +      if (!priv->current_parser_layout->xkb_name)
> +        {
> +          g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
> 
> This seems to be unrelated bug fixes, make sure to split.

Not really, the problem is that, given the way the parser is structured, we need to make sure we already have the current layout name so that we can look it up in the hash table.
Comment 3 Rui Matos 2013-02-18 12:57:25 UTC
Created attachment 236585 [details] [review]
squashed patch from wip/locale-info

Rebased the wip/locale-info branch on master and re-diffed the patch.
Comment 4 Bastien Nocera 2013-02-18 13:09:57 UTC
Review of attachment 236585 [details] [review]:

Looks fine.
Comment 5 Rui Matos 2013-02-19 11:24:38 UTC
Comment on attachment 236585 [details] [review]
squashed patch from wip/locale-info

pushed all the individual patches plus a soname bump