AnacondaLayoutIndicator

AnacondaLayoutIndicator

Functions

Properties

guint label-width Read / Write
char * layout Read

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkEventBox
                        ╰── AnacondaLayoutIndicator

Implemented Interfaces

AnacondaLayoutIndicator implements AtkImplementorIface and GtkBuildable.

Description

Functions

anaconda_layout_indicator_new ()

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.


anaconda_layout_indicator_get_current_layout ()

gchar *
anaconda_layout_indicator_get_current_layout
                               (AnacondaLayoutIndicator *indicator);

Parameters

indicator

a AnacondaLayoutIndicator

 

Returns

the currently activated X layout.

[transfer full]

Since: 1.0


anaconda_layout_indicator_get_label_width ()

guint
anaconda_layout_indicator_get_label_width
                               (AnacondaLayoutIndicator *indicator);

Parameters

indicator

a AnacondaLayoutIndicator

 

Returns

the current width of the layout label in number of chars

Since: 1.0


anaconda_layout_indicator_set_label_width ()

void
anaconda_layout_indicator_set_label_width
                               (AnacondaLayoutIndicator *indicator,
                                guint new_width);

Parameters

indicator

a AnacondaLayoutIndicator

 

new_width

a new requested width of the layout label in number of chars

 

Since: 1.0


anaconda_layout_indicator_retranslate ()

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.

Parameters

indicator

a AnacondaLayoutIndicator

 

Since: 1.0

Types and Values

struct AnacondaLayoutIndicator

struct AnacondaLayoutIndicator;

The AnacondaLayoutIndicator struct contains only private fields and should not be directly accessed.


struct AnacondaLayoutIndicatorClass

struct AnacondaLayoutIndicatorClass {
    GtkEventBoxClass parent_class;
};

Members

Property Details

The “label-width” property

  “label-width”              guint

Width of the label showing the current layout in number of characters.

Owner: AnacondaLayoutIndicator

Flags: Read / Write

Allowed values: <= 20

Default value: 8

Since: 1.0


The “layout” property

  “layout”                   char *

The “layout” is the currently activated X layout.

Owner: AnacondaLayoutIndicator

Flags: Read

Default value: "us"

Since: 1.0