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.RecentChooseris 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.RecentManagerwithGtk.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.ApplicationWindowof gtk_window.- Return type:
Returns the
Amtk.ApplicationWindowof 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-selectedandAmtk.MenuShell::menu-item-deselectedsignals 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.MenuItemhas 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:statusbarwhen aGtk.MenuItemof 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.RecentChooserMenuwithAmtk.ApplicationWindow.create_open_recent_menu_base(), and setup these additional things:The
Gtk.RecentChooserMenuis connected to the statusbar withAmtk.ApplicationWindow.connect_recent_chooser_menu_to_statusbar().When the
Gtk.RecentChooser::item-activatedsignal is emitted,Gio.Application.open() is called (with an empty hint), so theGio.Applicationmust have theGio.ApplicationFlags.HANDLES_OPENflag set.
New in version 3.0.
- Returns:
a new
Gtk.MenuItem.- Return type:
Creates a
Gtk.MenuItemwith a simple and genericGtk.RecentChooserMenuas submenu. TheGtk.RecentChooserMenuis created withAmtk.ApplicationWindow.create_open_recent_menu().New in version 2.0.
- get_application_window()¶
- Returns:
the
Gtk.ApplicationWindowof self.- Return type:
New in version 2.0.
- get_statusbar()¶
- Returns:
- Return type:
New in version 2.0.
- set_statusbar(statusbar)¶
- Parameters:
statusbar (
Gtk.StatusbarorNone) – aGtk.Statusbar, orNone.
Sets the
Amtk.ApplicationWindow:statusbarproperty.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.Noneby default.New in version 2.0.