Adw.WindowTitle

g Adw.WindowTitle Adw.WindowTitle GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Widget->Adw.WindowTitle

Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new (title, subtitle)

get_subtitle ()

get_title ()

set_subtitle (subtitle)

set_title (title)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1)

Name

Type

Flags

Short Description

subtitle

str

r/w/en

title

str

r/w/en

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Class Details

class Adw.WindowTitle(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

Structure:

Adw.WindowTitleClass

A helper widget for setting a window’s title and subtitle.

<picture> <source srcset=”window-title-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”window-title.png” alt=”window-title”> </picture>

AdwWindowTitle shows a title and subtitle. It’s intended to be used as the title child of [class`Gtk`.HeaderBar] or [class`HeaderBar`].

CSS nodes

AdwWindowTitle has a single CSS node with name windowtitle.

classmethod new(title, subtitle)
Parameters:
  • title (str) – a title

  • subtitle (str) – a subtitle

Returns:

the newly created AdwWindowTitle

Return type:

Gtk.Widget

Creates a new AdwWindowTitle.

get_subtitle()
Returns:

the subtitle

Return type:

str

Gets the subtitle of self.

get_title()
Returns:

the title

Return type:

str

Gets the title of self.

set_subtitle(subtitle)
Parameters:

subtitle (str) – a subtitle

Sets the subtitle of self.

The subtitle should give the user additional details.

set_title(title)
Parameters:

title (str) – a title

Sets the title of self.

The title typically identifies the current view or content item, and generally does not use the application name.

Property Details

Adw.WindowTitle.props.subtitle
Name:

subtitle

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The subtitle to display.

The subtitle should give the user additional details.

Adw.WindowTitle.props.title
Name:

title

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The title to display.

The title typically identifies the current view or content item, and generally does not use the application name.