Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkEventBox ╰── AnacondaLayoutIndicator
An AnacondaLayoutIndicator is a widget that can be used in any place where indication of currently activated X layout should be shown.
An AnacondaLayoutIndicator is a subclass of a GtkEventBox.
1 2 3 |
AnacondaLayoutIndicator ├── #anaconda-layout-icon ╰── #anaconda-layout-label |
The internal widgets are accessible by name for the purposes of CSS selectors.
anaconda-layout-icon
The keyboard icon indicating that this is a keyboard layout widget
anaconda-layout-label
A label describing the current layout
GtkWidget * anaconda_layout_indicator_new ();
Creates a new AnacondaLayoutIndicator, which is an indicator of the currently activated X layout. When the indicator is clicked, it activates the next layout in the list of configured layouts.
gchar *
anaconda_layout_indicator_get_current_layout
(AnacondaLayoutIndicator *indicator
);
Since: 1.0
guint
anaconda_layout_indicator_get_label_width
(AnacondaLayoutIndicator *indicator
);
Since: 1.0
void anaconda_layout_indicator_set_label_width (AnacondaLayoutIndicator *indicator
,guint new_width
);
Since: 1.0
void
anaconda_layout_indicator_retranslate (AnacondaLayoutIndicator *indicator
);
Reload translations for this widget as needed. Generally, this is not needed. However when changing the language during installation, we need to be able to make sure the screen gets retranslated. This function must be called after the LANG environment variable, locale and gettext magic are set.
Since: 1.0
struct AnacondaLayoutIndicator;
The AnacondaLayoutIndicator struct contains only private fields and should not be directly accessed.