Panel.Grid

g 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 Panel.Grid Panel.Grid Gtk.Widget->Panel.Grid

Subclasses:

None

Methods

Inherited:

Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (17), Gtk.Buildable (1)

Structs:

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

class

new ()

add (widget)

agree_to_close_async (cancellable, callback, *user_data)

agree_to_close_finish (result)

foreach_frame (callback, *user_data)

get_column (column)

get_most_recent_column ()

get_most_recent_frame ()

get_n_columns ()

insert_column (position)

Virtual Methods

Inherited:

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

Properties

Inherited:

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

Signals

Inherited:

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

Name

Short Description

create-frame

The “create-frame” signal is used to create a new frame within the grid.

Fields

Inherited:

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

Name

Type

Access

Description

parent_instance

Gtk.Widget

r

Class Details

class Panel.Grid(**kwargs)
Bases:

Gtk.Widget

Abstract:

No

Structure:

Panel.GridClass

The Panel.Grid is a widget used to layout the dock item in the center area.

classmethod new()
Returns:

a newly created Panel.Grid

Return type:

Gtk.Widget

Creates a new Panel.Grid.

add(widget)
Parameters:

widget (Panel.Widget) – a Panel.Widget the widget to add.

Add a Panel.Widget to the grid.

agree_to_close_async(cancellable, callback, *user_data)
Parameters:

Request to close, asynchronously. This will display the save dialog.

agree_to_close_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

bool

foreach_frame(callback, *user_data)
Parameters:

Calls callback for each Panel.Frame within grid.

get_column(column)
Parameters:

column (int) – a column index

Returns:

a Panel.GridColumn

Return type:

Panel.GridColumn

Gets the Panel.GridColumn for a column index.

get_most_recent_column()
Returns:

a Panel.GridColumn

Return type:

Panel.GridColumn

Gets the most recently acive column on a grid.

get_most_recent_frame()
Returns:

a #PanelGridFrame

Return type:

Panel.Frame

Gets the most recently acive frame on a grid.

get_n_columns()
Returns:

The number of columns.

Return type:

int

Gets the number of columns in the grid.

insert_column(position)
Parameters:

position (int) – The position to insert the column at.

Inserts a column at position.

Signal Details

Panel.Grid.signals.create_frame(grid)
Signal Name:

create-frame

Flags:

RUN_LAST

Parameters:

grid (Panel.Grid) – The object which received the signal

Returns:

an unrooted Panel.Frame

Return type:

Panel.Frame

The “create-frame” signal is used to create a new frame within the grid.

Consumers of this signal are required to return an unrooted Panel.Frame from this signal. The first signal handler wins.