![]() |
![]() |
![]() |
The AnacondaWidgets Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct AnacondaLayoutIndicator; struct AnacondaLayoutIndicatorClass; GtkWidget * anaconda_layout_indicator_new (); gchar * anaconda_layout_indicator_get_current_layout (AnacondaLayoutIndicator *indicator
); guint anaconda_layout_indicator_get_label_width (AnacondaLayoutIndicator *indicator
); void anaconda_layout_indicator_set_label_width (AnacondaLayoutIndicator *indicator
,guint new_width
); void anaconda_layout_indicator_retranslate (AnacondaLayoutIndicator *indicator
);
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.
struct AnacondaLayoutIndicator;
The AnacondaLayoutIndicator struct contains only private fields and should not be directly accessed.
struct AnacondaLayoutIndicatorClass { GtkEventBoxClass parent_class; /* this has to be a class attribute, because XklEngine is a singleton that should be used by all instances */ XklEngine *engine; };
GtkEventBoxClass |
The object class structure needs to be the first element in the widget class structure in order for the class mechanism to work correctly. This allows an AnacondaLayoutIndicatorClass pointer to be cast to a GtkEventBox pointer. |
XklEngine * |
A singleton XklEngine instance that is used by all instances of LayoutIndicator. |
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.
Returns : |
A new AnacondaLayoutIndicator. |
gchar * anaconda_layout_indicator_get_current_layout
(AnacondaLayoutIndicator *indicator
);
|
a AnacondaLayoutIndicator |
Returns : |
the currently activated X layout. [transfer full] |
Since 1.0
guint anaconda_layout_indicator_get_label_width
(AnacondaLayoutIndicator *indicator
);
|
a AnacondaLayoutIndicator |
Returns : |
the current width of the layout label in number of chars. [transfer none] |
Since 1.0
void anaconda_layout_indicator_set_label_width (AnacondaLayoutIndicator *indicator
,guint new_width
);
|
a AnacondaLayoutIndicator |
|
a new requested width of the layout label in number of chars |
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.
|
a AnacondaLayoutIndicator |
Since 1.0
"label-width"
property"label-width" guint : Read / Write
Width of the label showing the current layout in number of characters.
Allowed values: <= 20
Default value: 8
Since 1.0
"layout"
property"layout" gchar* : Read
The :layout is the currently activated X layout.
Default value: "us"
Since 1.0