Function
Pidginnew_check_item
Declaration [src]
GtkWidget*
pidgin_new_check_item (
GtkWidget* menu,
const char* str,
GCallback cb,
gpointer data,
gboolean checked
)
Parameters
menu |
GtkWidget |
The menu to which to append the check menu item. |
|
The data is owned by the caller of the function. | |
str |
const char* |
The title to use for the newly created menu item. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
cb |
GCallback |
A function to call when the menu item is activated. |
|
data |
gpointer |
Data to pass to the signal function. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
checked |
gboolean |
The initial state of the check item. |
Return value
Returns: | GtkWidget |
The newly created menu item. |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |