Gtk.MenuButton.prototype.set_direction
function set_direction(direction:Gtk.ArrowType):void { // Gjs wrapper for gtk_menu_button_set_direction() }
Sets the direction in which the menu will be popped up, as well as changing the arrow's direction. The child will not be changed to an arrow if it was customized.
If the menu when popped out would have collided with screen edges, we will do our best to keep it inside the screen and fully visible.
If you pass Gtk.ArrowType.none for a direction, the menu will behave as if you passed Gtk.ArrowType.down (although you won't see any arrows).
Since 3.6
- direction