widgets-common

widgets-common

Functions

Types and Values

Description

Functions

anaconda_apply_language ()

void
anaconda_apply_language (GtkLabel *label,
                         const gchar *language);

Apply a Pango language attribute to a label.

For some formatting decisions, in particular the font choice, the language of the text being rendered needs to be known. This is especially the case for the Chinese, Japanese and Korean translations, since Unicode uses a single codepoint for the CJK characters across languages, even when the particular language may render the character very differently. For example, U+76F4 (直) shows up a good bit in the translations, it is rendered differently in Chinese and Japanese, and it is considered unreadable between the two.

This function applies a PangoAttrLanguage attribute to the label so that the underlying renderer can do the right thing.

Parameters

label

The widget to which to apply the language.

[transfer none]

language

The language to apply to the widget

 

Since: 3.4

Types and Values

ANACONDA_RESOURCE_PATH

#define ANACONDA_RESOURCE_PATH  "/org/fedoraproject/anaconda/widgets/"