Sets our main struct and passes it to the parent class
Creates a new GtkSeparatorMenuItem.
the main Gtk struct as a void*
the main Gtk struct
the main Gtk struct
the main Gtk struct as a void*
Gets the application set action code
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 "activate".
See Also GtkBin, GtkMenuShell
Warning gtk_menu_item_set_right_justified has been deprecated since version 3.2 and should not be used in newly-written code. If you insist on using it, use gtk_widget_set_hexpand() and gtk_widget_set_halign(). 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.)
Warning gtk_menu_item_get_right_justified has been deprecated since version 3.2 and should not be used in newly-written code. See gtk_menu_item_set_right_justified() Gets whether the menu item appears justified at the right side of the menu bar.
Sets text on the menu_item label Since 2.16
Sets text on the menu_item label Since 2.16
Checks if an underline in the text indicates the next character should be used for the mnemonic accelerator key. Since 2.16
If true, an underline in the text indicates the next character should be used for the mnemonic accelerator key. Since 2.16
Sets or replaces the menu item's submenu, or removes it when a NULL submenu is passed.
Gets the submenu underneath this menu item, if any. See gtk_menu_item_set_submenu().
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. This function is basically a convenience wrapper that handles calling gtk_widget_set_accel_path() with the appropriate accelerator group for the menu item. Note that you do need to set an accelerator on the parent menu with gtk_menu_set_accel_group() for this to work. Note that accel_path string will be stored in a GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string().
Retrieve the accelerator path that was previously set on menu_item. See gtk_menu_item_set_accel_path() for details. Since 2.14
Emits the "select" signal on the given item. Behaves exactly like gtk_item_select.
Emits the "deselect" signal on the given item. Behaves exactly like gtk_item_deselect.
Emits the "activate" signal on the given item
Emits the "toggle-size-request" signal on the given item.
Emits the "toggle-size-allocate" signal on the given item.
Returns whether the menu_item reserves space for the submenu indicator, regardless if it has a submenu or not.
Sets whether the menu_item should reserve space for the submenu indicator, regardless if it actually has a submenu or not. There should be little need for applications to call this functions.
The GtkSeparatorMenuItem is a separator used to group items within a menu. It displays a horizontal line with a shadow to make it appear sunken into the interface.