Constructor

GtkRecentActionnew

deprecated: 3.10 since: 2.12

Declaration [src]

GtkAction*
gtk_recent_action_new (
  const gchar* name,
  const gchar* label,
  const gchar* tooltip,
  const gchar* stock_id
)

Description [src]

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().

Available since: 2.12

Deprecated since: 3.10

Please do not use it in newly written code.

Parameters

name

Type: const gchar*

A unique name for the action.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
label

Type: const gchar*

The label displayed in menu items and on buttons, or NULL.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
tooltip

Type: const gchar*

A tooltip for the action, or NULL.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
stock_id

Type: const gchar*

The stock icon to display in widgets representing the action, or NULL.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: GtkAction

The newly created GtkRecentAction.

The caller of the function takes ownership of the data, and is responsible for freeing it.