Function

Pidginnew_menu_item

Declaration [src]

GtkWidget*
pidgin_new_menu_item (
  GtkWidget* menu,
  const char* mnemonic,
  const char* icon,
  GCallback cb,
  gpointer data
)

Description [src]

Creates a menu item.

Parameters

menu GtkWidget
 

The menu to which to append the menu item.

 The data is owned by the caller of the function.
mnemonic const char*
 

The title for the menu item.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
icon const char*
 

An icon to place to the left of the menu item, or NULL for no icon.

 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.

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.