set_right_justified


Description:

[ Version ( deprecated = true , deprecated_since = "3.2" , replacement = "Widget.set_hexpand and Widget.set_halign" ) ]
public void set_right_justified (bool right_justified)

Warning: set_right_justified is deprecated since 3.2. Use Widget.set_hexpand and Widget.set_halign.

Sets whether the menu item appears justified at the right side of a menu bar.

Note:

If you insist on using it, use set_hexpand and set_halign.

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.)

Parameters:

this

a MenuItem.

right_justified

if true the menu item will appear at the far right if added to a menu bar