gtk-sharp[00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 71 EB 6C 55 75 52 9C BF 72 44 F7 A6 EA 05 62 84 F9 EA E0 3B CF F2 CC 13 2C 9C 49 0A B3 09 EA B0 B5 6B CE 44 9D F5 03 D9 C0 A8 1E 52 05 85 CD BE 70 E2 FB 90 43 4B AC 04 FA 62 22 A8 00 98 B7 A1 A7 B3 AF 99 1A 41 23 24 BB 43 25 F6 B8 65 BB 64 EB F6 D1 C2 06 D5 73 2D DF BC 70 A7 38 9E E5 3E 0C 24 6E 32 79 74 1A D0 05 03 E4 98 42 E1 9B F3 7B 19 8B 40 21 26 CB 36 89 C2 EA 64 96 A4 7C B4]2.6.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.An action which can be triggered by a menu or toolbar item.
Actions represent operations that the user can be perform, along with some information how it should be presented in the interface. Each action provides methods to create icons, menu items and toolbar items representing itself.
As well as the callback that is called when the action gets activated, the following also gets associated with the action:
a name (not translated, for path lookup)a label (translated, for display)an acceleratorwhether label indicates a stock ida tooltip (optional, translated)a toolbar label (optional, shorter than label)
The action will also have some state information:
visible (shown/hidden)sensitive (enabled/disabled)
Apart from regular actions, there are toggle actions, which can be toggled between two states and radio actions, of which only one in a group can be in the "active" state. Other actions can be implemented as subclasses.
Each action can have one or more proxy menu item, toolbar button or other proxy widgets. Proxies mirror the state of the action (text label, tooltip, icon, visible, sensitive, etc), and should change when the action's state changes. When the proxy is activated, it should activate its action.
GLib.ObjectMethodSystem.VoidDefault handler for the event.Override this method in a subclass to provide a default handler for the event.MethodSystem.VoidDisables calls to the function by signals on the given proxy widget.
a This is used to break notification loops for things like check or radio actions.
This function is intended for use by action implementations.MethodGtk.WidgetCreates a menu item widget that proxies for the given action.a that is a menu item connected to the action.MethodSystem.VoidEmits on the specified action, if it is not insensitive.This gets called by the proxy widgets when they get activated.
It can also be used to manually activate an action.MethodSystem.VoidUndoes the effect of one call to .MethodSystem.VoidRe-enables calls to the function by signals on the given proxy widget.
a This undoes the blocking done by .
This function is intended for use by action implementations.MethodGtk.WidgetThis function is intended for use by action implementations to create icons displayed in the proxy widgets.
a , the size of the icon that should be created.
a that displays the icon for this action.MethodSystem.VoidInstalls the accelerator for action if action has an AccelPath and AccelGroup.See and
Since multiple proxies may independently trigger the installation of the accelerator, the action counts the number of times this function has been called and does not remove the accelerator until has been called as many times.
MethodGtk.WidgetCreates a toolbar item widget that proxies for the given action.a that is a toolbar item connected to the action.MethodSystem.VoidConnects a widget to an action object as a proxy.
a Synchronises various properties of the action with the widget (such as label text, icon, tooltip, etc), and attaches a callback so that the action gets activated when the proxy widget does.
If the widget is already connected to an action, it is disconnected first.MethodSystem.VoidDisconnects a proxy widget from an action.
a Does not destroy the widget, however.ConstructorInternal constructor
a System.Obsolete(Message=null, IsError=False)ConstructorInternal constructor
a ConstructorCreates a new action from the , , , and .
A unique name for the action
the label displayed in menu items and on buttons
a tooltip for the action, or for no tooltip
the stock icon to display in widgets representing the action, or ConstructorCreates a new action from the and .
A unique name for the action
the label displayed in menu items and on buttons
Convenience constructor for passing in for the last two parameters.PropertyGLib.GTypeGType Property.a Returns the native value for .PropertySystem.BooleanWhether the action is considered important.a When , toolitem proxies for this action show text in mode.
Default value: GLib.Property(Name="is_important")PropertySystem.BooleanWhen , toolitem proxies for this action are represented in the toolbar overflow menu.a Default value is GLib.Property(Name="visible_vertical")PropertySystem.StringThe stock icon displayed in widgets representing this action.a Default value is GLib.Property(Name="stock_id")PropertySystem.BooleanWhen , empty menu proxies for this action are hidden.a Default value: GLib.Property(Name="hide_if_empty")PropertySystem.StringA unique name for the action.a GLib.Property(Name="name")PropertySystem.StringA shorter label that may be used on toolbar buttons.a Default value is GLib.Property(Name="short_label")PropertySystem.BooleanWhether the toolbar item is visible when the toolbar is in a horizontal orientation.a Default value is GLib.Property(Name="visible_horizontal")PropertyGtk.ActionGroupThe GtkActionGroup this GtkAction is associated with.a Can be set to for internal use.GLib.Property(Name="action_group")PropertySystem.StringThe label used for menu items and buttons that activate this action.a Default value is GLib.Property(Name="label")PropertySystem.StringA tooltip for this action.a Default value is GLib.Property(Name="tooltip")PropertySystem.BooleanWhether the action itself is sensitive.a
This does not necessarily mean effective sensitivity. See for that.
GLib.Property(Name="sensitive")PropertySystem.BooleanWhether the action itself is visible.a
This does not necessarily mean effective visibility. See for that.
GLib.Property(Name="visible")PropertyGtk.AccelGroupThe in which the accelerator for this action will be installed.a or PropertySystem.Booleanwhether the action is effectively sensitive.a if the action and its associated action group are both sensitive. PropertySystem.BooleanWhether the action is effectively visible.a if the action and its associated action group are both visible.PropertySystem.StringThe accel path for this action.a All proxy widgets associated with the action will have this accel path, so that their accelerators are consistent.EventSystem.EventHandlerEvent fired when this action is activated.GLib.Signal(CName="activate")PropertyGtk.Widget[]Returns the proxy widgets for an action.a of proxy widgets.PropertySystem.BooleanTo be addeda To be addedGLib.Property(Name="visible_overflown")