RecentAction

A GtkRecentAction represents a list of recently used files, which can be shown by widgets such as GtkRecentChooserDialog or GtkRecentChooserMenu.

To construct a submenu showing recently used files, use a GtkRecentAction as the action for a <menuitem>. To construct a menu toolbutton showing the recently used files in the popup menu, use a GtkRecentAction as the action for a <toolitem> element.

Constructors

this
this(GtkRecentAction* gtkRecentAction)

Sets our main struct and passes it to the parent class

this
this(string name, string label, string tooltip, StockID stockID)

Creates a new GtkRecentAction object. To add the action to a GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel(). Since 2.12

this
this(string name, string label, string tooltip, StockID stockID, RecentManager manager)

Creates a new GtkRecentAction object. To add the action to a GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel(). Since 2.12

this
this(string name, string label, string tooltip, string stockId)

Warning gtk_recent_action_new is deprecated and should not be used in newly-written code. 3.10 Creates a new GtkRecentAction object. To add the action to a GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel(). Since 2.12

this
this(string name, string label, string tooltip, string stockId, RecentManager manager)

Warning gtk_recent_action_new_for_manager is deprecated and should not be used in newly-written code. 3.10 Creates a new GtkRecentAction object. To add the action to a GtkActionGroup and set the accelerator for the action, call gtk_action_group_add_action_with_accel(). Since 2.12

Members

Functions

getRecentActionStruct
GtkRecentAction* getRecentActionStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getShowNumbers
int getShowNumbers()

Warning gtk_recent_action_get_show_numbers is deprecated and should not be used in newly-written code. 3.10 Returns the value set by gtk_recent_chooser_menu_set_show_numbers(). Since 2.12

getStruct
void* getStruct()

the main Gtk struct as a void*

setShowNumbers
void setShowNumbers(int showNumbers)

Warning gtk_recent_action_set_show_numbers is deprecated and should not be used in newly-written code. 3.10 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. Since 2.12

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

gtkRecentAction
GtkRecentAction* gtkRecentAction;

the main Gtk struct

Inherited Members

From Action

gtkAction
GtkAction* gtkAction;

the main Gtk struct

getActionStruct
GtkAction* getActionStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
__anonymous
mixin BuildableT!(GtkAction)
Undocumented in source.
getStockId
StockID getStockId()

Gets the stock id of action. Since 2.16

setStockId
void setStockId(StockID stockId)

Sets the stock id on action Since 2.16

createIcon
Image createIcon(GtkIconSize iconSize)

This function is intended for use by action implementations to create icons displayed in the proxy widgets. Since 2.4

createMenuItem
MenuItem createMenuItem()

Creates a menu item widget that proxies for the given action. Since 2.4

createToolItem
ToolItem createToolItem()

Creates a toolbar item widget that proxies for the given action. Since 2.4

createMenu
Menu createMenu()

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. Since 2.12

connectedSignals
int[string] connectedSignals;
onActivateListeners
void delegate(Action)[] onActivateListeners;
Undocumented in source.
addOnActivate
void addOnActivate(void delegate(Action) dlg, ConnectFlags connectFlags)

Warning GtkAction::activate has been deprecated since version 3.10 and should not be used in newly-written code. Use "activate" instead The "activate" signal is emitted when the action is activated. Since 2.4 See Also GtkActionGroup, GtkUIManager, GtkActivatable

callBackActivate
void callBackActivate(GtkAction* actionStruct, Action _action)
Undocumented in source. Be warned that the author may not have intended to support it.
getName
string getName()

Warning gtk_action_get_name has been deprecated since version 3.10 and should not be used in newly-written code. Use g_action_get_name() on a GAction instead Returns the name of the action. Since 2.4

isSensitive
int isSensitive()

Warning gtk_action_is_sensitive has been deprecated since version 3.10 and should not be used in newly-written code. Use g_simple_action_get_enabled() on a GSimpleAction instead Returns whether the action is effectively sensitive. Since 2.4

getSensitive
int getSensitive()

Warning gtk_action_get_sensitive has been deprecated since version 3.10 and should not be used in newly-written code. Use g_simple_action_get_enabled() on a GSimpleAction instead Returns whether the action itself is sensitive. Note that this doesn't necessarily mean effective sensitivity. See gtk_action_is_sensitive() for that. Since 2.4

setSensitive
void setSensitive(int sensitive)

Warning gtk_action_set_sensitive has been deprecated since version 3.10 and should not be used in newly-written code. Use g_simple_action_set_enabled() on a GSimpleAction instead 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. Since 2.6

isVisible
int isVisible()

Warning gtk_action_is_visible has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and control and monitor the state of GtkActionable widgets directly Returns whether the action is effectively visible. Since 2.4

getVisible
int getVisible()

Warning gtk_action_get_visible has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and control and monitor the state of GtkActionable widgets directly Returns whether the action itself is visible. Note that this doesn't necessarily mean effective visibility. See gtk_action_is_sensitive() for that. Since 2.4

setVisible
void setVisible(int visible)

Warning gtk_action_set_visible has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and control and monitor the state of GtkActionable widgets directly 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. Since 2.6

activate
void activate()

Warning gtk_action_activate has been deprecated since version 3.10 and should not be used in newly-written code. Use g_action_group_activate_action() on a GAction instead 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. Since 2.4

getProxies
ListSG getProxies()

Warning gtk_action_get_proxies is deprecated and should not be used in newly-written code. 3.10 Returns the proxy widgets for an action. See also gtk_activatable_get_related_action(). Since 2.4

connectAccelerator
void connectAccelerator()

Warning gtk_action_connect_accelerator has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction and the accelerator group on an associated GtkMenu instead 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. Since 2.4

disconnectAccelerator
void disconnectAccelerator()

Warning gtk_action_disconnect_accelerator has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction and the accelerator group on an associated GtkMenu instead Undoes the effect of one call to gtk_action_connect_accelerator(). Since 2.4

blockActivate
void blockActivate()

Warning gtk_action_block_activate has been deprecated since version 3.10 and should not be used in newly-written code. Use g_simple_action_set_enabled() to disable the GSimpleAction instead 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). Since 2.16

unblockActivate
void unblockActivate()

Warning gtk_action_unblock_activate has been deprecated since version 3.10 and should not be used in newly-written code. Use g_simple_action_set_enabled() to enable the GSimpleAction instead Reenable activation signals from the action Since 2.16

getAlwaysShowImage
int getAlwaysShowImage()

Warning gtk_action_get_always_show_image has been deprecated since version 3.10 and should not be used in newly-written code. Use g_menu_item_get_attribute_value() on a GMenuItem instead Returns whether action's menu item proxies will always show their image, if available. Since 2.20

setAlwaysShowImage
void setAlwaysShowImage(int alwaysShow)

Warning gtk_action_set_always_show_image has been deprecated since version 3.10 and should not be used in newly-written code. Use g_menu_item_set_icon() on a GMenuItem instead, if the item should have an image Sets whether action's menu item proxies will always show their image, if available. Use this if the menu item would be useless or hard to use without their image. Since 2.20

getAccelPath
string getAccelPath()

Warning gtk_action_get_accel_path has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction and the accelerator path on an associated GtkMenu instead Returns the accel path for this action. Since 2.6

setAccelPath
void setAccelPath(string accelPath)

Warning gtk_action_set_accel_path has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction and the accelerator path on an associated GtkMenu instead 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(). Since 2.4

getAccelClosure
Closure getAccelClosure()

Warning gtk_action_get_accel_closure has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction and GtkMenu instead, which have no equivalent for getting the accel closure Returns the accel closure for this action. Since 2.8

setAccelGroup
void setAccelGroup(AccelGroup accelGroup)

Warning gtk_action_set_accel_group has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction and the accelerator group on an associated GtkMenu instead Sets the GtkAccelGroup in which the accelerator for this action will be installed. Since 2.4

setLabel
void setLabel(string label)

Warning gtk_action_set_label has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and set a label on a menu item with g_menu_item_set_label(). For GtkActionable widgets, use the widget-specific API to set a label Sets the label of action. Since 2.16

getLabel
string getLabel()

Warning gtk_action_get_label has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and get a label from a menu item with g_menu_item_get_attribute_value(). For GtkActionable widgets, use the widget-specific API to get a label Gets the label text of action. Since 2.16

setShortLabel
void setShortLabel(string shortLabel)

Warning gtk_action_set_short_label has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, which has no equivalent of short labels Sets a shorter label text on action. Since 2.16

getShortLabel
string getShortLabel()

Warning gtk_action_get_short_label has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, which has no equivalent of short labels Gets the short label text of action. Since 2.16

setTooltip
void setTooltip(string tooltip)

Warning gtk_action_set_tooltip has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and set tooltips on associated GActionable widgets with gtk_widget_set_tooltip_text() Sets the tooltip text on action Since 2.16

getTooltip
string getTooltip()

Warning gtk_action_get_tooltip has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and get tooltips from associated GActionable widgets with gtk_widget_get_tooltip_text() Gets the tooltip text of action. Since 2.16

setStockId
void setStockId(string stockId)

Warning gtk_action_set_stock_id has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, which has no equivalent of stock items Sets the stock id on action Since 2.16

setGicon
void setGicon(IconIF icon)

Warning gtk_action_set_gicon has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and g_menu_item_set_icon() to set an icon on a GMenuItem associated with a GAction, or gtk_container_add() to add a GtkImage to a GtkButton Sets the icon of action. Since 2.16

getGicon
IconIF getGicon()

Warning gtk_action_get_gicon has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and g_menu_item_get_attribute_value() to get an icon from a GMenuItem associated with a GAction Gets the gicon of action. Since 2.16

setIconName
void setIconName(string iconName)

Warning gtk_action_set_icon_name has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and g_menu_item_set_icon() to set an icon on a GMenuItem associated with a GAction, or gtk_container_add() to add a GtkImage to a GtkButton Sets the icon name on action Since 2.16

getIconName
string getIconName()

Warning gtk_action_get_icon_name has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and g_menu_item_get_attribute_value() to get an icon from a GMenuItem associated with a GAction Gets the icon name of action. Since 2.16

setVisibleHorizontal
void setVisibleHorizontal(int visibleHorizontal)

Warning gtk_action_set_visible_horizontal has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and control and monitor the visibility of associated widgets and menu items directly Sets whether action is visible when horizontal Since 2.16

getVisibleHorizontal
int getVisibleHorizontal()

Warning gtk_action_get_visible_horizontal has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and control and monitor the visibility of associated widgets and menu items directly Checks whether action is visible when horizontal Since 2.16

setVisibleVertical
void setVisibleVertical(int visibleVertical)

Warning gtk_action_set_visible_vertical has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and control and monitor the visibility of associated widgets and menu items directly Sets whether action is visible when vertical Since 2.16

getVisibleVertical
int getVisibleVertical()

Warning gtk_action_get_visible_vertical has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and control and monitor the visibility of associated widgets and menu items directly Checks whether action is visible when horizontal Since 2.16

setIsImportant
void setIsImportant(int isImportant)

Warning gtk_action_set_is_important has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and control and monitor whether labels are shown directly Sets whether the action is important, this attribute is used primarily by toolbar items to decide whether to show a label or not. Since 2.16

getIsImportant
int getIsImportant()

Warning gtk_action_get_is_important has been deprecated since version 3.10 and should not be used in newly-written code. Use GAction instead, and control and monitor whether labels are shown directly Checks whether action is important or not Since 2.16

Meta