Method

GtkMenuattach

Declaration [src]

void
gtk_menu_attach (
  GtkMenu* menu,
  GtkWidget* child,
  guint left_attach,
  guint right_attach,
  guint top_attach,
  guint bottom_attach
)

Description [src]

Adds a new GtkMenuItem to a (table) menu. The number of “cells” that an item will occupy is specified by left_attach, right_attach, top_attach and bottom_attach. These each represent the leftmost, rightmost, uppermost and lower column and row numbers of the table. (Columns and rows are indexed from zero).

Note that this function is not related to gtk_menu_detach().

Available since:2.4

Parameters

child GtkWidget
 

A GtkMenuItem.

 The data is owned by the caller of the function.
left_attach guint
 

The column number to attach the left side of the item to.

right_attach guint
 

The column number to attach the right side of the item to.

top_attach guint
 

The row number to attach the top of the item to.

bottom_attach guint
 

The row number to attach the bottom of the item to.