Lines Matching defs:priv
219 LightDMLanguagePrivate *priv;
223 priv = GET_PRIVATE (language);
225 if (!priv->name)
227 gchar *locale = get_locale_name (priv->code);
236 priv->name = g_strdup (dgettext ("iso_639_3", language_en));
240 if (!priv->name)
242 gchar **tokens = g_strsplit_set (priv->code, "_.@", 2);
243 priv->name = g_strdup (tokens[0]);
248 return priv->name;
262 LightDMLanguagePrivate *priv;
266 priv = GET_PRIVATE (language);
268 if (!priv->territory && strchr (priv->code, '_'))
270 gchar *locale = get_locale_name (priv->code);
279 priv->territory = g_strdup (dgettext ("iso_3166", country_en));
283 if (!priv->territory)
285 gchar **tokens = g_strsplit_set (priv->code, "_.@", 3);
286 priv->territory = g_strdup (tokens[1]);
291 return priv->territory;
306 LightDMLanguagePrivate *priv;
311 priv = GET_PRIVATE (language);
314 if (is_utf8 (priv->code) && is_utf8 (code))
318 for (i = 0; priv->code[i] && code[i] && priv->code[i] == code[i] && code[i] != '.' ; i++);
319 return priv->code[i] == '.' && code[i] == '.';
322 return g_str_equal (priv->code, code);
337 LightDMLanguagePrivate *priv = GET_PRIVATE (self);
341 g_free (priv->name);
342 priv->code = g_strdup (g_value_get_string (value));