Sets our main struct and passes it to the parent class.
Creates a new #GtkTearoffMenuItem.
the main Gtk struct as a void*
Get the main Gtk struct
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Gets the application set action code
Emits the #GtkMenuItem::activate signal on the given item
Emits the #GtkMenuItem::deselect signal on the given item.
Retrieve the accelerator path that was previously set on @menu_item.
Sets @text on the @menu_item label
Returns whether the @menu_item reserves space for the submenu indicator, regardless if it has a submenu or not.
Gets whether the menu item appears justified at the right side of the menu bar.
Gets the submenu underneath this menu item, if any. See gtk_menu_item_set_submenu().
Checks if an underline in the text indicates the next character should be used for the mnemonic accelerator key.
Emits the #GtkMenuItem::select signal on the given item.
Set the accelerator path on @menu_item, through which runtime changes of the menu item’s accelerator caused by the user can be identified and saved to persistent storage (see gtk_accel_map_save() on this). To set up a default accelerator for this menu item, call gtk_accel_map_add_entry() with the same @accel_path. See also gtk_accel_map_add_entry() on the specifics of accelerator paths, and gtk_menu_set_accel_path() for a more convenient variant of this function.
Sets @text on the @menu_item label
Sets whether the @menu_item should reserve space for the submenu indicator, regardless if it actually has a submenu or not.
Sets whether the menu item appears justified at the right side of a menu bar. This was traditionally done for “Help” menu items, but is now considered a bad idea. (If the widget layout is reversed for a right-to-left language like Hebrew or Arabic, right-justified-menu-items appear at the left.)
Sets or replaces the menu item’s submenu, or removes it when a %NULL submenu is passed.
If true, an underline in the text indicates the next character should be used for the mnemonic accelerator key.
Emits the #GtkMenuItem::toggle-size-allocate signal on the given item.
Emits the #GtkMenuItem::toggle-size-request signal on the given item.
Emitted when the item is activated.
Emitted when the item is activated, but also if the menu item has a submenu. For normal applications, the relevant signal is #GtkMenuItem::activate.
A #GtkTearoffMenuItem is a special #GtkMenuItem which is used to tear off and reattach its menu.
When its menu is shown normally, the #GtkTearoffMenuItem is drawn as a dotted line indicating that the menu can be torn off. Activating it causes its menu to be torn off and displayed in its own window as a tearoff menu.
When its menu is shown as a tearoff menu, the #GtkTearoffMenuItem is drawn as a dotted line which has a left pointing arrow graphic indicating that the tearoff menu can be reattached. Activating it will erase the tearoff menu window.
> #GtkTearoffMenuItem is deprecated and should not be used in newly > written code. Menus are not meant to be torn around.