GObject.Object
Gtk.Action
Gtk.RecentAction
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkRecentAction |
Class : | RecentAction |
Implements: | Gtk.Buildable, Gtk.RecentChooser |
Extends: | Gtk.Action |
Properties | Defined By | |
---|---|---|
action_group : Gtk.ActionGroup
|
Gtk.Action | |
always_show_image : gboolean
If TRUE, the action's menu item proxies will ignore the GtkSettings:gtk-menu-images
setting and always show their image, if available. If TRUE, the action's menu item proxies will ignore the GtkSettings:gtk-menu-images
setting and always show their image, if available. Use this property if the menu item would be useless or hard to use without their image. |
Gtk.Action | |
filter : Gtk.RecentFilter
The GtkRecentFilter object to be used when displaying
the recently used resources. The GtkRecentFilter object to be used when displaying
the recently used resources. |
Gtk.RecentChooser | |
gicon : Gio.Icon
The GIcon displayed in the GtkAction.
The GIcon displayed in the GtkAction.
Note that the stock icon is preferred, if the GtkAction:stock-id property holds the id of an existing stock icon. This is an appearance property and thus only applies if GtkActivatable:use-action-appearance is TRUE. |
Gtk.Action | |
hide_if_empty : gboolean
|
Gtk.Action | |
icon_name : String
The name of the icon from the icon theme.
The name of the icon from the icon theme.
Note that the stock icon is preferred, if the GtkAction:stock-id property holds the id of an existing stock icon, and the GIcon is preferred if the GtkAction:gicon property is set. This is an appearance property and thus only applies if GtkActivatable:use-action-appearance is TRUE. |
Gtk.Action | |
is_important : gboolean
|
Gtk.Action | |
label : String
The label used for menu items and buttons that activate
this action. The label used for menu items and buttons that activate
this action. If the label is NULL, GTK+ uses the stock label specified via the stock-id property. This is an appearance property and thus only applies if GtkActivatable:use-action-appearance is TRUE. |
Gtk.Action | |
limit : gint32
The maximum number of recently used resources to be displayed,
or -1 to display all items. The maximum number of recently used resources to be displayed,
or -1 to display all items. By default, the override that limit on a particular instance of GtkRecentChooser by setting this property. |
Gtk.RecentChooser | |
local_only : gboolean
Whether this GtkRecentChooser should display only local (file:)
resources. Whether this GtkRecentChooser should display only local (file:)
resources. |
Gtk.RecentChooser | |
name : String
|
Gtk.Action | |
object : GObject.Object
read only
|
Gtk.Action | |
parent_instance : Gtk.Action
read only
|
Gtk.RecentAction | |
priv : Gtk.RecentActionPrivate
read only
|
Gtk.RecentAction | |
private_data : Gtk.ActionPrivate
read only
|
Gtk.Action | |
recent_manager : Gtk.RecentManager
The GtkRecentManager instance used by the GtkRecentChooser to
display the list of recently used resources. The GtkRecentManager instance used by the GtkRecentChooser to
display the list of recently used resources. |
Gtk.RecentChooser | |
select_multiple : gboolean
Allow the user to select multiple resources.
Allow the user to select multiple resources.
|
Gtk.RecentChooser | |
sensitive : gboolean
|
Gtk.Action | |
short_label : String
A shorter label that may be used on toolbar buttons.
A shorter label that may be used on toolbar buttons.
This is an appearance property and thus only applies if GtkActivatable:use-action-appearance is TRUE. |
Gtk.Action | |
show_icons : gboolean
Whether this GtkRecentChooser should display an icon near the item.
Whether this GtkRecentChooser should display an icon near the item.
|
Gtk.RecentChooser | |
show_not_found : gboolean
Whether this GtkRecentChooser should display the recently used resources
even if not present anymore. Whether this GtkRecentChooser should display the recently used resources
even if not present anymore. Setting this to FALSE will perform a potentially expensive check on every local resource (every remote resource will always be displayed). |
Gtk.RecentChooser | |
show_numbers : gboolean
|
Gtk.RecentAction | |
show_private : gboolean
|
Gtk.RecentChooser | |
show_tips : gboolean
Whether this GtkRecentChooser should display a tooltip containing the
full path of the recently used resources. Whether this GtkRecentChooser should display a tooltip containing the
full path of the recently used resources. |
Gtk.RecentChooser | |
sort_type : Gtk.RecentSortType
Sorting order to be used when displaying the recently used resources.
Sorting order to be used when displaying the recently used resources.
|
Gtk.RecentChooser | |
stock_id : String
The stock icon displayed in widgets representing this action.
The stock icon displayed in widgets representing this action.
This is an appearance property and thus only applies if GtkActivatable:use-action-appearance is TRUE. |
Gtk.Action | |
tooltip : String
|
Gtk.Action | |
visible : gboolean
|
Gtk.Action | |
visible_horizontal : gboolean
|
Gtk.Action | |
visible_overflown : gboolean
When TRUE, toolitem proxies for this action are represented in the
toolbar overflow menu. When TRUE, toolitem proxies for this action are represented in the
toolbar overflow menu. |
Gtk.Action | |
visible_vertical : gboolean
|
Gtk.Action |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.RecentAction
(Object properties)
Create a new Gtk.RecentAction
Create a new Gtk.RecentAction
|
||
new Gtk.RecentAction.c_new
(String name, String label, String tooltip, String stock_id)
:
Gtk.Action
Create a new Gtk.RecentAction
Create a new Gtk.RecentAction
|
||
new Gtk.RecentAction.for_manager
(String name, String label, String tooltip, String stock_id, RecentManager manager)
:
Gtk.Action
Create a new Gtk.RecentAction
Create a new Gtk.RecentAction
|
||
activate
()
:
none
Emits the "activate" signal on the specified action, if it isn't
insensitive.
Emits the "activate" signal on the specified action, if it isn't
insensitive. This gets called by the proxy widgets when they get activated. It can also be used to manually activate an action.
|
Gtk.Action | |
Adds a child to buildable.
Adds a child to buildable. type is an optional string
describing how the child should be added.
|
Gtk.Buildable | |
add_filter
(RecentFilter filter)
:
none
Adds filter to the list of GtkRecentFilter objects held by chooser.
Adds filter to the list of GtkRecentFilter objects held by chooser.
If no previous filter objects were defined, this function will call gtk_recent_chooser_set_filter().
|
Gtk.RecentChooser | |
block_activate
()
:
none
Disable activation signals from the action
This is needed when updating the state of your proxy GtkActivatable widget could result in calling gtk_action_activate(), this is a convenience function to avoid recursing in those cases (updating toggle state for instance).
Disable activation signals from the action
This is needed when updating the state of your proxy GtkActivatable widget could result in calling gtk_action_activate(), this is a convenience function to avoid recursing in those cases (updating toggle state for instance).
|
Gtk.Action | |
connect_accelerator
()
:
none
Installs the accelerator for action if action has an
accel path and group.
Installs the accelerator for action if action has an
accel path and group. See gtk_action_set_accel_path() and gtk_action_set_accel_group() Since multiple proxies may independently trigger the installation of the accelerator, the action counts the number of times this function has been called and doesn't remove the accelerator until gtk_action_disconnect_accelerator() has been called as many times.
|
Gtk.Action | |
Constructs a child of buildable with the name name.
Constructs a child of buildable with the name name.
GtkBuilder calls this function if a "constructor" has been specified in the UI definition.
|
Gtk.Buildable | |
create_icon
(gint32 icon_size)
:
Gtk.Widget
This function is intended for use by action implementations to
create icons displayed in the proxy widgets.
This function is intended for use by action implementations to
create icons displayed in the proxy widgets.
|
Gtk.Action | |
create_menu
()
:
Gtk.Widget
If action provides a GtkMenu widget as a submenu for the menu
item or the toolbar item it creates, this function returns an instance of that menu.
If action provides a GtkMenu widget as a submenu for the menu
item or the toolbar item it creates, this function returns an instance of that menu. action, or NULL.
|
Gtk.Action | |
create_menu_item
()
:
Gtk.Widget
Creates a menu item widget that proxies for the given action.
Creates a menu item widget that proxies for the given action.
|
Gtk.Action | |
create_tool_item
()
:
Gtk.Widget
Creates a toolbar item widget that proxies for the given action.
Creates a toolbar item widget that proxies for the given action.
|
Gtk.Action | |
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
|
Gtk.Buildable | |
This is called at the end of each custom element handled by
the buildable.
This is called at the end of each custom element handled by
the buildable.
|
Gtk.Buildable | |
This is called for each unknown element under <child>.
This is called for each unknown element under <child>.
if it doesn't.
|
Gtk.Buildable | |
disconnect_accelerator
()
:
none
Undoes the effect of one call to gtk_action_connect_accelerator().
Undoes the effect of one call to gtk_action_connect_accelerator().
|
Gtk.Action | |
get_accel_closure
()
:
GObject.Closure
Returns the accel closure for this action.
Returns the accel closure for this action.
returned closure is owned by GTK+ and must not be unreffed or modified.
|
Gtk.Action | |
get_accel_path
()
:
String
Returns the accel path for this action.
Returns the accel path for this action.
if none is set. The returned string is owned by GTK+ and must not be freed or modified.
|
Gtk.Action | |
get_always_show_image
()
:
gboolean
Returns whether action's menu item proxies will ignore the
GtkSettings:gtk-menu-images setting and always show their image, if available.
Returns whether action's menu item proxies will ignore the
GtkSettings:gtk-menu-images setting and always show their image, if available.
|
Gtk.Action | |
get_current_item
()
:
Gtk.RecentInfo
Gets the GtkRecentInfo currently selected by chooser.
Gets the GtkRecentInfo currently selected by chooser.
when you have finished using it.
|
Gtk.RecentChooser | |
get_current_uri
()
:
String
Gets the URI currently selected by chooser.
Gets the URI currently selected by chooser.
|
Gtk.RecentChooser | |
get_filter
()
:
Gtk.RecentFilter
Gets the GtkRecentFilter object currently used by chooser to affect
the display of the recently used resources.
Gets the GtkRecentFilter object currently used by chooser to affect
the display of the recently used resources.
|
Gtk.RecentChooser | |
get_gicon
()
:
Gio.Icon
Gets the gicon of action.
Gets the gicon of action.
|
Gtk.Action | |
get_icon_name
()
:
String
Gets the icon name of action.
Gets the icon name of action.
|
Gtk.Action | |
Get the internal child called childname of the buildable object.
Get the internal child called childname of the buildable object.
|
Gtk.Buildable | |
get_is_important
()
:
gboolean
Checks whether action is important or not
Checks whether action is important or not
|
Gtk.Action | |
get_items
()
:
Array
Gets the list of recently used resources in form of GtkRecentInfo objects.
Gets the list of recently used resources in form of GtkRecentInfo objects.
The return value of this function is affected by the "sort-type" and "limit" properties of chooser. list of GtkRecentInfo objects. You should use gtk_recent_info_unref() on every item of the list, and then free the list itself using g_list_free().
|
Gtk.RecentChooser | |
get_label
()
:
String
Gets the label text of action.
Gets the label text of action.
|
Gtk.Action | |
get_limit
()
:
gint32
Gets the number of items returned by gtk_recent_chooser_get_items()
and gtk_recent_chooser_get_uris().
Gets the number of items returned by gtk_recent_chooser_get_items()
and gtk_recent_chooser_get_uris(). returned.
|
Gtk.RecentChooser | |
get_local_only
()
:
gboolean
Gets whether only local resources should be shown in the recently used
resources selector.
Gets whether only local resources should be shown in the recently used
resources selector. See gtk_recent_chooser_set_local_only()
|
Gtk.RecentChooser | |
get_name
()
:
String
Returns the name of the action.
Returns the name of the action.
be freed.
|
Gtk.Action | |
get_proxies
()
:
Array
Returns the proxy widgets for an action.
Returns the proxy widgets for an action.
See also gtk_activatable_get_related_action(). and must not be modified.
|
Gtk.Action | |
get_select_multiple
()
:
gboolean
Gets whether chooser can select multiple items.
Gets whether chooser can select multiple items.
|
Gtk.RecentChooser | |
get_sensitive
()
:
gboolean
Returns whether the action itself is sensitive.
Returns whether the action itself is sensitive. Note that this doesn't
necessarily mean effective sensitivity. See gtk_action_is_sensitive() for that.
|
Gtk.Action | |
get_short_label
()
:
String
Gets the short label text of action.
Gets the short label text of action.
|
Gtk.Action | |
get_show_icons
()
:
gboolean
Retrieves whether chooser should show an icon near the resource.
Retrieves whether chooser should show an icon near the resource.
|
Gtk.RecentChooser | |
get_show_not_found
()
:
gboolean
Retrieves whether chooser should show the recently used resources that
were not found.
Retrieves whether chooser should show the recently used resources that
were not found. FALSE otheriwse.
|
Gtk.RecentChooser | |
get_show_numbers
()
:
gboolean
Returns the value set by gtk_recent_chooser_menu_set_show_numbers().
Returns the value set by gtk_recent_chooser_menu_set_show_numbers().
|
Gtk.RecentAction | |
get_show_private
()
:
gboolean
Returns whether chooser should display recently used resources
registered as private.
Returns whether chooser should display recently used resources
registered as private. FALSE otherwise.
|
Gtk.RecentChooser | |
get_show_tips
()
:
gboolean
Gets whether chooser should display tooltips containing the full path
of a recently user resource.
Gets whether chooser should display tooltips containing the full path
of a recently user resource. FALSE otherwise.
|
Gtk.RecentChooser | |
get_sort_type
()
:
Gtk.RecentSortType
Gets the value set by gtk_recent_chooser_set_sort_type().
Gets the value set by gtk_recent_chooser_set_sort_type().
|
Gtk.RecentChooser | |
get_stock_id
()
:
String
Gets the stock id of action.
Gets the stock id of action.
|
Gtk.Action | |
get_tooltip
()
:
String
Gets the tooltip text of action.
Gets the tooltip text of action.
|
Gtk.Action | |
Gets the URI of the recently used resources.
Gets the URI of the recently used resources.
The return value of this function is affected by the "sort-type" and "limit" properties of chooser. Since the returned array is NULL terminated, length may be NULL. A newly allocated, NULL-terminated array of strings. Use g_strfreev() to free it.
|
Gtk.RecentChooser | |
get_visible
()
:
gboolean
Returns whether the action itself is visible.
Returns whether the action itself is visible. Note that this doesn't
necessarily mean effective visibility. See gtk_action_is_sensitive() for that.
|
Gtk.Action | |
get_visible_horizontal
()
:
gboolean
Checks whether action is visible when horizontal
Checks whether action is visible when horizontal
|
Gtk.Action | |
get_visible_vertical
()
:
gboolean
Checks whether action is visible when horizontal
Checks whether action is visible when horizontal
|
Gtk.Action | |
is_sensitive
()
:
gboolean
Returns whether the action is effectively sensitive.
Returns whether the action is effectively sensitive.
are both sensitive.
|
Gtk.Action | |
is_visible
()
:
gboolean
Returns whether the action is effectively visible.
Returns whether the action is effectively visible.
are both visible.
|
Gtk.Action | |
list_filters
()
:
Array
Gets the GtkRecentFilter objects held by chooser.
Gets the GtkRecentFilter objects held by chooser.
of GtkRecentFilter objects. You should just free the returned list using g_slist_free().
|
Gtk.RecentChooser | |
parser_finished
(Builder builder)
:
none
Called when the builder finishes the parsing of a
GtkBuilder UI definition.
Called when the builder finishes the parsing of a
GtkBuilder UI definition. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.
|
Gtk.Buildable | |
remove_filter
(RecentFilter filter)
:
none
Removes filter from the list of GtkRecentFilter objects held by chooser.
Removes filter from the list of GtkRecentFilter objects held by chooser.
|
Gtk.RecentChooser | |
select_all
()
:
none
Selects all the items inside chooser, if the chooser supports
multiple selection.
Selects all the items inside chooser, if the chooser supports
multiple selection.
|
Gtk.RecentChooser | |
Gtk.RecentChooser | ||
set_accel_group
(AccelGroup accel_group)
:
none
Sets the GtkAccelGroup in which the accelerator for this action
will be installed.
Sets the GtkAccelGroup in which the accelerator for this action
will be installed.
|
Gtk.Action | |
set_accel_path
(String accel_path)
:
none
Sets the accel path for this action.
Sets the accel path for this action. All proxy widgets associated
with the action will have this accel path, so that their accelerators are consistent. Note that accel_path string will be stored in a GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string().
|
Gtk.Action | |
set_always_show_image
(gboolean always_show)
:
none
Sets whether action's menu item proxies will ignore the
GtkSettings:gtk-menu-images setting and always show their image, if available.
Sets whether action's menu item proxies will ignore the
GtkSettings:gtk-menu-images setting and always show their image, if available. Use this if the menu item would be useless or hard to use without their image.
|
Gtk.Action | |
Sets the property name name to value on the buildable object.
Sets the property name name to value on the buildable object.
|
Gtk.Buildable | |
Gtk.RecentChooser | ||
set_filter
(RecentFilter filter)
:
none
Sets filter as the current GtkRecentFilter object used by chooser
to affect the displayed recently used resources.
Sets filter as the current GtkRecentFilter object used by chooser
to affect the displayed recently used resources.
|
Gtk.RecentChooser | |
set_gicon
(Icon icon)
:
none
Sets the icon of action.
Sets the icon of action.
|
Gtk.Action | |
set_icon_name
(String icon_name)
:
none
Sets the icon name on action
Sets the icon name on action
|
Gtk.Action | |
set_is_important
(gboolean is_important)
:
none
Sets whether the action is important, this attribute is used
primarily by toolbar items to decide whether to show a label or not.
Sets whether the action is important, this attribute is used
primarily by toolbar items to decide whether to show a label or not.
|
Gtk.Action | |
set_label
(String label)
:
none
Sets the label of action.
Sets the label of action.
|
Gtk.Action | |
set_limit
(gint32 limit)
:
none
Sets the number of items that should be returned by
gtk_recent_chooser_get_items() and gtk_recent_chooser_get_uris().
Sets the number of items that should be returned by
gtk_recent_chooser_get_items() and gtk_recent_chooser_get_uris().
|
Gtk.RecentChooser | |
set_local_only
(gboolean local_only)
:
none
Sets whether only local resources, that is resources using the file:// URI
scheme, should be shown in the recently used resources selector.
Sets whether only local resources, that is resources using the file:// URI
scheme, should be shown in the recently used resources selector. If to be accessible through the operating system native file system.
|
Gtk.RecentChooser | |
set_name
(String name)
:
none
Sets the name of the buildable object.
Sets the name of the buildable object.
|
Gtk.Buildable | |
set_select_multiple
(gboolean select_multiple)
:
none
Sets whether chooser can select multiple items.
Sets whether chooser can select multiple items.
|
Gtk.RecentChooser | |
set_sensitive
(gboolean sensitive)
:
none
Sets the ::sensitive property of the action to sensitive.
Sets the ::sensitive property of the action to sensitive. Note that
this doesn't necessarily mean effective sensitivity. See gtk_action_is_sensitive() for that.
|
Gtk.Action | |
set_short_label
(String short_label)
:
none
Sets a shorter label text on action.
Sets a shorter label text on action.
|
Gtk.Action | |
set_show_icons
(gboolean show_icons)
:
none
Sets whether chooser should show an icon near the resource when
displaying it.
Sets whether chooser should show an icon near the resource when
displaying it.
|
Gtk.RecentChooser | |
set_show_not_found
(gboolean show_not_found)
:
none
Sets whether chooser should display the recently used resources that
it didn't find.
Sets whether chooser should display the recently used resources that
it didn't find. This only applies to local resources.
|
Gtk.RecentChooser | |
set_show_numbers
(gboolean show_numbers)
:
none
Sets whether a number should be added to the items shown by the
widgets representing action.
Sets whether a number should be added to the items shown by the
widgets representing action. The numbers are shown to provide a unique character for a mnemonic to be used inside the menu item's label. Only the first ten items get a number to avoid clashes.
|
Gtk.RecentAction | |
set_show_private
(gboolean show_private)
:
none
Whether to show recently used resources marked registered as private.
Whether to show recently used resources marked registered as private.
|
Gtk.RecentChooser | |
set_show_tips
(gboolean show_tips)
:
none
Sets whether to show a tooltips containing the full path of each
recently used resource in a GtkRecentChooser widget.
Sets whether to show a tooltips containing the full path of each
recently used resource in a GtkRecentChooser widget.
|
Gtk.RecentChooser | |
Sets the comparison function used when sorting to be sort_func.
Sets the comparison function used when sorting to be sort_func. If
the chooser has the sort type set to GTK_RECENT_SORT_CUSTOM then the chooser will sort using this function. To the comparison function will be passed two GtkRecentInfo structs and item comes before the second, zero if the two items are equal and a negative integer if the first item comes after the second.
|
Gtk.RecentChooser | |
set_sort_type
(RecentSortType sort_type)
:
none
Changes the sorting order of the recently used resources list displayed by
Changes the sorting order of the recently used resources list displayed by
|
Gtk.RecentChooser | |
set_stock_id
(String stock_id)
:
none
Sets the stock id on action
Sets the stock id on action
|
Gtk.Action | |
set_tooltip
(String tooltip)
:
none
Sets the tooltip text on action
Sets the tooltip text on action
|
Gtk.Action | |
set_visible
(gboolean visible)
:
none
Sets the ::visible property of the action to visible.
Sets the ::visible property of the action to visible. Note that
this doesn't necessarily mean effective visibility. See gtk_action_is_visible() for that.
|
Gtk.Action | |
set_visible_horizontal
(gboolean visible_horizontal)
:
none
Sets whether action is visible when horizontal
Sets whether action is visible when horizontal
|
Gtk.Action | |
set_visible_vertical
(gboolean visible_vertical)
:
none
Sets whether action is visible when vertical
Sets whether action is visible when vertical
|
Gtk.Action | |
unblock_activate
()
:
none
Reenable activation signals from the action
Reenable activation signals from the action
|
Gtk.Action | |
unselect_all
()
:
none
Unselects all the items inside chooser.
Unselects all the items inside chooser.
|
Gtk.RecentChooser | |
unselect_uri
(String uri)
:
none
Unselects uri inside chooser.
Unselects uri inside chooser.
|
Gtk.RecentChooser |
Event | Defined By | |
---|---|---|
activate (Action self)
:
none
The "activate" signal is emitted when the action is activated.
The "activate" signal is emitted when the action is activated.
|
Gtk.Action | |
item_activated (RecentChooser self)
:
none
This signal is emitted when the user "activates" a recent item
in the recent chooser.
This signal is emitted when the user "activates" a recent item
in the recent chooser. This can happen by double-clicking on an item in the recently used resources list, or by pressing
|
Gtk.RecentChooser | |
selection_changed (RecentChooser self)
:
none
This signal is emitted when there is a change in the set of
selected recently used resources.
This signal is emitted when there is a change in the set of
selected recently used resources. This can happen when a user modifies the selection with the mouse or the keyboard, or when explicitely calling functions to change the selection.
|
Gtk.RecentChooser |