GObject.Object
Gtk.Action
Gtk.ToggleAction
Gtk.RadioAction
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkRadioAction |
Class : | RadioAction |
Implements: | Gtk.Buildable |
Extends: | Gtk.ToggleAction |
Properties | Defined By | |
---|---|---|
action_group : Gtk.ActionGroup
|
Gtk.Action | |
active : gboolean
Whether the toggle action should be active.
Whether the toggle action should be active.
|
Gtk.ToggleAction | |
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 | |
current_value : gint32
The value property of the currently active member of the group to which
this action belongs. The value property of the currently active member of the group to which
this action belongs. |
Gtk.RadioAction | |
draw_as_radio : gboolean
Whether the proxies for this action look like radio action proxies.
Whether the proxies for this action look like radio action proxies.
This is an appearance property and thus only applies if GtkActivatable:use-action-appearance is TRUE. |
Gtk.ToggleAction | |
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 | |
group : Gtk.RadioAction
Sets a new group for a radio action.
Sets a new group for a radio action.
|
Gtk.RadioAction | |
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 | |
name : String
|
Gtk.Action | |
object : GObject.Object
read only
|
Gtk.Action | |
parent : Gtk.ToggleAction
read only
|
Gtk.RadioAction | |
private_data : Gtk.RadioActionPrivate
read only
|
Gtk.RadioAction | |
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 | |
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 | |
value : gint32
The value is an arbitrary integer which can be used as a
convenient way to determine which action in the group is currently active in an ::activate or ::changed signal handler. The value is an arbitrary integer which can be used as a
convenient way to determine which action in the group is currently active in an ::activate or ::changed signal handler. See gtk_radio_action_get_current_value() and GtkRadioActionEntry for convenient ways to get and set this property. |
Gtk.RadioAction | |
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.RadioAction
(Object properties)
Create a new Gtk.RadioAction
Create a new Gtk.RadioAction
|
||
new Gtk.RadioAction.c_new
(String name, String label, String tooltip, String stock_id, gint32 value)
:
Gtk.RadioAction
Create a new Gtk.RadioAction
Create a new Gtk.RadioAction
|
||
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 | |
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_active
()
:
gboolean
Returns the checked state of the toggle action.
Returns the checked state of the toggle action.
|
Gtk.ToggleAction | |
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_value
()
:
gint32
Obtains the value property of the currently active member of
the group to which action belongs.
Obtains the value property of the currently active member of
the group to which action belongs.
|
Gtk.RadioAction | |
get_draw_as_radio
()
:
gboolean
Returns whether the action should have proxies like a radio action.
Returns whether the action should have proxies like a radio action.
|
Gtk.ToggleAction | |
get_gicon
()
:
Gio.Icon
Gets the gicon of action.
Gets the gicon of action.
|
Gtk.Action | |
get_group
()
:
Array
Returns the list representing the radio group for this object.
Returns the list representing the radio group for this object.
Note that the returned list is only valid until the next change to the group. A common way to set up a group of radio group is the following: |[ GSList *group = NULL; GtkRadioAction *action; while (/* more actions to add */) { action = gtk_radio_action_new (...); gtk_radio_action_set_group (action, group); group = gtk_radio_action_get_group (action); } ]|
|
Gtk.RadioAction | |
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_label
()
:
String
Gets the label text of action.
Gets the label text of action.
|
Gtk.Action | |
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_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_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 | |
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 | |
join_group
(RadioAction group_source)
:
none
Joins a radio action object to the group of another radio action object.
Joins a radio action object to the group of another radio action object.
Use this in language bindings instead of the gtk_radio_action_get_group() and gtk_radio_action_set_group() methods A common way to set up a group of radio actions is the following: |[ GtkRadioAction *action; GtkRadioAction *last_action; while (/* more actions to add */) { action = gtk_radio_action_new (...); gtk_radio_action_join_group (action, last_action); last_action = action; } ]|
|
Gtk.RadioAction | |
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 | |
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_active
(gboolean is_active)
:
none
Sets the checked state on the toggle action.
Sets the checked state on the toggle action.
|
Gtk.ToggleAction | |
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 | |
set_current_value
(gint32 current_value)
:
none
Sets the currently active group member to the member with value
property current_value.
Sets the currently active group member to the member with value
property current_value.
|
Gtk.RadioAction | |
set_draw_as_radio
(gboolean draw_as_radio)
:
none
Sets whether the action should have proxies like a radio action.
Sets whether the action should have proxies like a radio action.
|
Gtk.ToggleAction | |
set_gicon
(Icon icon)
:
none
Sets the icon of action.
Sets the icon of action.
|
Gtk.Action | |
set_group
(Array group)
:
none
Sets the radio group for the radio action object.
Sets the radio group for the radio action object.
|
Gtk.RadioAction | |
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_name
(String name)
:
none
Sets the name of the buildable object.
Sets the name of the buildable object.
|
Gtk.Buildable | |
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_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 | |
toggled
()
:
none
Emits the "toggled" signal on the toggle action.
Emits the "toggled" signal on the toggle action.
|
Gtk.ToggleAction | |
unblock_activate
()
:
none
Reenable activation signals from the action
Reenable activation signals from the action
|
Gtk.Action |
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 | |
changed (RadioAction self, RadioAction current)
:
none
The ::changed signal is emitted on every member of a radio group when the
active member is changed.
The ::changed signal is emitted on every member of a radio group when the
active member is changed. The signal gets emitted after the ::activate signals for the previous and current active members.
|
Gtk.RadioAction | |
toggled (ToggleAction self)
:
none
Should be connected if you wish to perform an action
whenever the GtkToggleAction state is changed.
Should be connected if you wish to perform an action
whenever the GtkToggleAction state is changed.
|
Gtk.ToggleAction |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.RadioAction
Property |
group : Gtk.RadioAction
Sets a new group for a radio action.
|