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]Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.GLib.ObjectAn 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.
Constructor
a Internal constructorConstructor
A unique name for the action
the label displayed in menu items and on buttons
Creates a new action from the and .Convenience constructor for passing in for the last two parameters.Constructor
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 Creates a new action from the , , , and .PropertyGtk.AccelGroupThe in which the accelerator for this action will be installed.a or 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.PropertyGLib.Property("action-group")Gtk.ActionGroupThe GtkActionGroup this GtkAction is associated with.a Can be set to for internal use.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.EventGLib.Signal("activate")System.EventHandlerEvent raised when this action is activated.PropertyGLib.Property("always-show-image")System.BooleanTo be added.To be added.To be added.MethodSystem.VoidTo be added.To be added.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.Widget
a , the size of the icon that should be created.
This function is intended for use by action implementations to create icons displayed in the proxy widgets.a that displays the icon for this action.MethodGtk.WidgetTo be added.To be added.To be added.MethodGtk.WidgetCreates a menu item widget that proxies for the given action.a that is a menu item connected to the action.MethodGtk.WidgetCreates a toolbar item widget that proxies for the given action.a that is a toolbar item connected to the action.MethodSystem.VoidUndoes the effect of one call to .PropertyGLib.Property("gicon")GLib.IIconTo be added.To be added.To be added.PropertyGLib.GTypeGType Property.a Returns the native value for .PropertyGLib.Property("hide-if-empty")System.BooleanWhen , empty menu proxies for this action are hidden.a Default value: PropertyGLib.Property("icon-name")System.StringThe name of the icon from the icon theme.the icon name.PropertyGLib.Property("is-important")System.BooleanWhether the action is considered important.a When , toolitem proxies for this action show text in mode.
Default value: 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.PropertyGLib.Property("label")System.StringThe label used for menu items and buttons that activate this action.a Default value is PropertyGLib.Property("name")System.StringA unique name for the action.a MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideActivated", Type=typeof(Gtk.Action))System.VoidDefault handler for the event.Override this method in a subclass to provide a default handler for the event.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideConnectProxy", Type=typeof(Gtk.Action))System.Void
To be added.
To be added.To be added.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideCreateMenu", Type=typeof(Gtk.Action))Gtk.WidgetTo be added.To be added.To be added.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideCreateMenuItem", Type=typeof(Gtk.Action))Gtk.WidgetTo be added.To be added.To be added.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideCreateToolItem", Type=typeof(Gtk.Action))Gtk.WidgetTo be added.To be added.To be added.MethodGLib.DefaultSignalHandler(ConnectionMethod="OverrideDisconnectProxy", Type=typeof(Gtk.Action))System.Void
To be added.
To be added.To be added.PropertyGtk.Widget[]Returns the proxy widgets for an action.a of proxy widgets.PropertyGLib.Property("sensitive")System.BooleanWhether the action itself is sensitive.a
This does not necessarily mean effective sensitivity. See for that.
PropertyGLib.Property("short-label")System.StringA shorter label that may be used on toolbar buttons.a Default value is PropertyGLib.Property("stock-id")System.StringThe stock icon displayed in widgets representing this action.a Default value is PropertyGLib.Property("tooltip")System.StringA tooltip for this action.a Default value is MethodSystem.VoidTo be added.To be added.PropertyGLib.Property("visible")System.BooleanWhether the action itself is visible.a
This does not necessarily mean effective visibility. See for that.
PropertyGLib.Property("visible-horizontal")System.BooleanWhether the toolbar item is visible when the toolbar is in a horizontal orientation.a Default value is PropertyGLib.Property("visible-overflown")System.BooleanWhen , toolitem proxies for this action are represented in the toolbar overflow menu.a Default value is .PropertyGLib.Property("visible-vertical")System.BooleanWhen , toolitem proxies for this action are represented in the toolbar overflow menu.a Default value is