mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
812e0cfdb7
2005-02-11 Matthias Clasen <mclasen@redhat.com> Support vertical menubars (#166632): * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack directions, with values for left-to-right, right-to-left, top-to-bottom and bottom-to-top. * gtk/gtk.symbols: * gtk/gtkmenubar.h: * gtk/gtkmenubar.c: Add two properties, pack-direction and child-pack-direction, which specify how children and grandchildren of a menubar are packed, with getters and setters. * gtk/gtkmenubar.c (gtk_menu_bar_set_property): (gtk_menu_bar_get_property): Implement set_property and get_property. * gtk/gtkmenubar.c (gtk_menu_bar_size_request): (gtk_menu_bar_size_allocate): Take pack direction into account. * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement move_current here move all the menubar-specific direction tweaking from the generic menushell implementation here. * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific direction tweaking from the generic menushell implementation here. * gtk/gtkmenuitem.c (gtk_menu_item_size_request): (gtk_menu_bar_size_allocate): Take pack direction into account. * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request) (gtk_image_menu_item_size_allocate): (gtk_image_menu_item_toggle_size_request): Take child pack direction into account and pack the image vertically if necessary. * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item): Set the submenu direction to left-right for menuitems in vertical menubars. (gtk_real_menu_shell_move_current): Simplify by moving direction tweaking to menu- and menubar-specific implementations. Take pack direction into account when doing fallbacks. * tests/testmenubars.c: Test menubars in various packing direction combinations. * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars. |
||
---|---|---|
.. | ||
test-images | ||
.cvsignore | ||
3DRings.xpm | ||
apple-red.png | ||
check-n.xpm | ||
check-y.xpm | ||
circles.xbm | ||
FilesQueue.xpm | ||
gnome-textfile.png | ||
Makefile.am | ||
makefile.msc | ||
marble.xpm | ||
merge-1.ui | ||
merge-2.ui | ||
merge-3.ui | ||
Modeller.xpm | ||
pixbuf-lowmem.c | ||
pixbuf-random.c | ||
pixbuf-randomly-modified.c | ||
pixbuf-read.c | ||
pixbuf-threads.c | ||
prop-editor.c | ||
prop-editor.h | ||
simple.c | ||
stresstest-toolbar.c | ||
test.xpm | ||
testactions.c | ||
testcairo.c | ||
testcalendar.c | ||
testcombo.c | ||
testcombochange.c | ||
testdnd.c | ||
testellipsise.c | ||
testentrycompletion.c | ||
testfilechooser.c | ||
testfilechooserbutton.c | ||
testgtk.1 | ||
testgtk.c | ||
testgtkrc | ||
testgtkrc2 | ||
testicontheme.c | ||
testiconview.c | ||
testimage.c | ||
testinput.c | ||
testmenubars.c | ||
testmenus.c | ||
testmerge.c | ||
testmultidisplay.c | ||
testmultiscreen.c | ||
testrgb.c | ||
testselection.c | ||
testsocket_child.c | ||
testsocket_common.c | ||
testsocket.c | ||
testspinbutton.c | ||
testtext.c | ||
testtextbuffer.c | ||
testthreads.c | ||
testtoolbar.c | ||
testtreecolumns.c | ||
testtreeedit.c | ||
testtreeflow.c | ||
testtreefocus.c | ||
testtreemodel.c | ||
testtreesort.c | ||
testtreeview-plan.txt | ||
testtreeview.c | ||
testxinerama.c | ||
treestoretest.c |