AnacondaSpokeSelector

AnacondaSpokeSelector

Functions

Properties

char * icon Read / Write
char * status Read / Write
char * title Read / Write

Types and Values

Object Hierarchy

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

Implemented Interfaces

AnacondaSpokeSelector implements AtkImplementorIface and GtkBuildable.

Description

Functions

anaconda_spoke_selector_new ()

GtkWidget *
anaconda_spoke_selector_new ();

Creates a new AnacondaSpokeSelector, which is a selectable display for a single spoke of an Anaconda hub. Many spokes may be put together into a grid, displaying everything that a user needs to do in one place.

创建一个新的AnacondaSpokeSelector,它是一个可选择的显示 Anaconda 中心的单辐条。 许多辐条可以组合在一起形成一个 网格,在一个地方显示用户需要做的所有事情。

Returns

A new AnacondaSpokeSelector.


anaconda_spoke_selector_get_incomplete ()

gboolean
anaconda_spoke_selector_get_incomplete
                               (AnacondaSpokeSelector *spoke);

Returns whether or not this spoke has been completed. 返回状态是否完成

Parameters

Returns

Whether spoke has been completed by the user.

Since: 1.0


anaconda_spoke_selector_set_incomplete ()

void
anaconda_spoke_selector_set_incomplete
                               (AnacondaSpokeSelector *spoke,
                                gboolean is_incomplete);

Specifies whether this spoke must still be visited by the user. If so, this means anaconda doesn't have enough information to continue and the user must take some action. A warning icon will be displayed alongside the spoke's icon, and the continue button will be disabled. 指定用户是否仍必须访问此分支。 如果是这样,这意味着 anaconda 没有足够的信息来继续, 户必须采取一些操作。 辐条图标旁边将显示一个警告图标,并且继续按钮将被禁用。

Parameters

spoke

a AnacondaSpokeSelector

 

is_incomplete

TRUE if this spoke still needs to be visited.

 

Since: 1.0

Types and Values

struct AnacondaSpokeSelector

struct AnacondaSpokeSelector;

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


struct AnacondaSpokeSelectorClass

struct AnacondaSpokeSelectorClass {
    GtkEventBoxClass parent_class;
};

Members

Property Details

The “icon” property

  “icon”                     char *

The “icon” string is the standard icon name for an icon to display beside this spoke's :title. It is strongly suggested that one of the "-symbolic" icons be used, as that is consistent with the style we are going for. “icon” 字符串是显示在该辐条的 :title 旁边的图标的标准图标名称。 强烈建议使用“-symbolic”图标之一,因为这与我们想要的风格一致。

Owner: AnacondaSpokeSelector

Flags: Read / Write

Default value: "image-missing"

Since: 1.0


The “status” property

  “status”                   char *

The “status” string is text displayed underneath the spoke's “title” and also beside the “icon”. This text very briefly describes what has been selected on the spoke associated with this selector. For instance, it might be set up to "English" for a language-related spoke. Special formatting will be applied to error status text for incomplete spokes.

  • “status” 字符串是显示在辐条 “title” 下方 以及 “icon” 旁边的文本。 该文本非常简要地描述了在与该选择器关联的辐 条上所选择的内容。 例如,对于与语言相关的发言,可以将其设置为“英语”。 特殊格式将应用于不完整 辐条的错误状态文本。

Owner: AnacondaSpokeSelector

Flags: Read / Write

Default value: "None"

Since: 1.0


The “title” property

  “title”                    char *

The :title of this selector, which will be displayed large and bold beside the :icon. The title string should contain a keyboard mnemonic (a letter preceeded by an underscore), in which case this will be the keystroke that can be used to focus this selector. 该选择器的 :title,将在 :icon 旁边大而粗地显示。 标题字符串应包含键盘助记符 (前面带有下划线的字母),在这种情况下,这将是可用于聚焦此选择器的击键。

Owner: AnacondaSpokeSelector

Flags: Read / Write

Default value: "New Selector"

Since: 1.0