GtkSource.CompletionItem

g GObject.GInterface GObject.GInterface GtkSource.CompletionProposal GtkSource.CompletionProposal GObject.GInterface->GtkSource.CompletionProposal GObject.Object GObject.Object GtkSource.CompletionItem GtkSource.CompletionItem GObject.Object->GtkSource.CompletionItem GtkSource.CompletionProposal->GtkSource.CompletionItem

Subclasses:

None

Methods

Inherited:

GObject.Object (37), GtkSource.CompletionProposal (10)

Structs:

GObject.ObjectClass (5)

class

new ()

set_gicon (gicon)

set_icon (icon)

set_icon_name (icon_name)

set_info (info)

set_label (label)

set_markup (markup)

set_text (text)

Virtual Methods

Inherited:

GObject.Object (7), GtkSource.CompletionProposal (10)

Properties

Name

Type

Flags

Short Description

gicon

Gio.Icon

r/w

icon

GdkPixbuf.Pixbuf

r/w

icon-name

str

r/w

info

str

r/w

label

str

r/w

markup

str

r/w

text

str

r/w

Signals

Inherited:

GObject.Object (1), GtkSource.CompletionProposal (1)

Fields

Inherited:

GObject.Object (1), GtkSource.CompletionProposal (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class GtkSource.CompletionItem(**kwargs)
Bases:

GObject.Object, GtkSource.CompletionProposal

Abstract:

No

Structure:

GtkSource.CompletionItemClass

classmethod new()
Returns:

a new GtkSource.CompletionItem.

Return type:

GtkSource.CompletionItem

Creates a new GtkSource.CompletionItem. The desired properties need to be set afterwards.

New in version 4.0.

set_gicon(gicon)
Parameters:

gicon (Gio.Icon or None) – the Gio.Icon, or None.

New in version 3.24.

set_icon(icon)
Parameters:

icon (GdkPixbuf.Pixbuf or None) – the GdkPixbuf.Pixbuf, or None.

New in version 3.24.

set_icon_name(icon_name)
Parameters:

icon_name (str or None) – the icon name, or None.

New in version 3.24.

set_info(info)
Parameters:

info (str or None) – the info, or None.

New in version 3.24.

set_label(label)
Parameters:

label (str or None) – the label, or None.

New in version 3.24.

set_markup(markup)
Parameters:

markup (str or None) – the markup, or None.

New in version 3.24.

set_text(text)
Parameters:

text (str or None) – the text, or None.

New in version 3.24.

Property Details

GtkSource.CompletionItem.props.gicon
Name:

gicon

Type:

Gio.Icon

Default Value:

None

Flags:

READABLE, WRITABLE

The Gio.Icon for the icon to be shown for this proposal.

New in version 3.18.

GtkSource.CompletionItem.props.icon
Name:

icon

Type:

GdkPixbuf.Pixbuf

Default Value:

None

Flags:

READABLE, WRITABLE

The GdkPixbuf.Pixbuf for the icon to be shown for this proposal.

GtkSource.CompletionItem.props.icon_name
Name:

icon-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The icon name for the icon to be shown for this proposal.

New in version 3.18.

GtkSource.CompletionItem.props.info
Name:

info

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Optional extra information to be shown for this proposal.

GtkSource.CompletionItem.props.label
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Label to be shown for this proposal.

GtkSource.CompletionItem.props.markup
Name:

markup

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Label with markup to be shown for this proposal.

GtkSource.CompletionItem.props.text
Name:

text

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Proposal text.