Constructor
GtkRecentActionnew_for_manager
deprecated: 3.10 since: 2.12
Declaration [src]
GtkAction*
gtk_recent_action_new_for_manager (
const gchar* name,
const gchar* label,
const gchar* tooltip,
const gchar* stock_id,
GtkRecentManager* manager
)
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. manager
-
Type:
GtkRecentManager
A
GtkRecentManager
, orNULL
for using the defaultGtkRecentManager
.The argument can be NULL
.The data is owned by the caller of the function.
Return value
Type: GtkAction
The newly created GtkRecentAction
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |