Method

GtkMenuattach

since: 2.4

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

Type: GtkWidget

A GtkMenuItem.

The data is owned by the caller of the method.
left_attach

Type: guint

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

right_attach

Type: guint

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

top_attach

Type: guint

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

bottom_attach

Type: guint

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