Amtk.ApplicationWindow¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|||
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Amtk.ApplicationWindow(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- Returns:
a new
Gtk.RecentChooserMenu
.- Return type:
Creates the base of a simple and generic
Gtk.RecentChooserMenu
.The
Gtk.RecentChooser
is configured to show files only recently used with the current application, as returned byGLib.get_application_name
(). If recent files are added to the defaultGtk.RecentManager
withGtk.RecentManager.add_item
(), the files will normally show up in theGtk.RecentChooserMenu
.New in version 5.6.
- classmethod get_from_gtk_application_window(gtk_window)¶
- Parameters:
gtk_window (
Gtk.ApplicationWindow
) – aGtk.ApplicationWindow
.- Returns:
the
Amtk.ApplicationWindow
of gtk_window.- Return type:
Returns the
Amtk.ApplicationWindow
of gtk_window. The returned object is guaranteed to be the same for the lifetime of gtk_window.New in version 2.0.
- Parameters:
menu_shell (
Gtk.MenuShell
) – aGtk.MenuShell
.
Connects to the
Amtk.MenuShell
::menu-item-selected
andAmtk.MenuShell
::menu-item-deselected
signals of menu_shell to push/pop the long description ofGtk.MenuItem
's to theAmtk.ApplicationWindow
:statusbar
.The long description is retrieved with
Amtk.menu_item_get_long_description
(). SoAmtk.menu_item_set_long_description
() must have been called, which is the case if theGtk.MenuItem
has been created withAmtk.Factory
.New in version 2.0.
- Parameters:
menu (
Gtk.RecentChooserMenu
) – aGtk.RecentChooserMenu
.
An alternative to
Gtk.RecentChooser.set_show_tips
(). Shows the full path in theAmtk.ApplicationWindow
:statusbar
when aGtk.MenuItem
of menu is selected.The full path is retrieved with
Amtk.utils_recent_chooser_menu_get_item_uri
().New in version 2.0.
- Returns:
a new
Gtk.RecentChooserMenu
.- Return type:
This function creates a
Gtk.RecentChooserMenu
withAmtk.ApplicationWindow.create_open_recent_menu_base
(), and setup these additional things:The
Gtk.RecentChooserMenu
is connected to the statusbar withAmtk.ApplicationWindow.connect_recent_chooser_menu_to_statusbar
().When the
Gtk.RecentChooser
::item-activated
signal is emitted,Gio.Application.open
() is called (with an empty hint), so theGio.Application
must have theGio.ApplicationFlags.HANDLES_OPEN
flag set.
New in version 3.0.
- Returns:
a new
Gtk.MenuItem
.- Return type:
Creates a
Gtk.MenuItem
with a simple and genericGtk.RecentChooserMenu
as submenu. TheGtk.RecentChooserMenu
is created withAmtk.ApplicationWindow.create_open_recent_menu
().New in version 2.0.
- get_application_window()¶
- Returns:
the
Gtk.ApplicationWindow
of self.- Return type:
New in version 2.0.
- get_statusbar()¶
- Returns:
- Return type:
New in version 2.0.
- set_statusbar(statusbar)¶
- Parameters:
statusbar (
Gtk.Statusbar
orNone
) – aGtk.Statusbar
, orNone
.
Sets the
Amtk.ApplicationWindow
:statusbar
property.New in version 2.0.
Property Details¶
- Amtk.ApplicationWindow.props.application_window¶
- Name:
application-window
- Type:
- Default Value:
- Flags:
New in version 2.0.
- Amtk.ApplicationWindow.props.statusbar¶
- Name:
statusbar
- Type:
- Default Value:
- Flags:
The
Gtk.Statusbar
.None
by default.New in version 2.0.