forked from AuroraMiddleware/gtk
testgtk: right-justify menuitem by using expand/align flags
gtk_menu_item_set_right_justify() is about to be deprecated and this thing should work. (Note: should, because I didn't implemented it yet.)
This commit is contained in:
parent
0203cd612e
commit
e8c6dbfab1
@ -3271,7 +3271,8 @@ create_menus (GtkWidget *widget)
|
||||
menuitem = gtk_image_menu_item_new_with_label ("Help");
|
||||
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem), image);
|
||||
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), create_menu (screen, 4, 5, TRUE));
|
||||
gtk_menu_item_set_right_justified (GTK_MENU_ITEM (menuitem), TRUE);
|
||||
gtk_widget_set_hexpand (menuitem, TRUE);
|
||||
gtk_widget_set_halign (menuitem, GTK_ALIGN_END);
|
||||
gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
|
||||
gtk_widget_show (menuitem);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user