• Matthias Clasen's avatar
    Support vertical menubars (#166632): · 812e0cfd
    Matthias Clasen authored
    
    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.
    812e0cfd
Name
Last commit
Last update
contrib Loading commit data...
debian Loading commit data...
demos Loading commit data...
docs Loading commit data...
examples Loading commit data...
gdk Loading commit data...
gdk-pixbuf Loading commit data...
gtk Loading commit data...
m4macros Loading commit data...
modules Loading commit data...
po Loading commit data...
po-properties Loading commit data...
tests Loading commit data...
.cvsignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
ChangeLog.pre-1-0 Loading commit data...
ChangeLog.pre-1-2 Loading commit data...
ChangeLog.pre-2-0 Loading commit data...
ChangeLog.pre-2-10 Loading commit data...
ChangeLog.pre-2-2 Loading commit data...
ChangeLog.pre-2-4 Loading commit data...
ChangeLog.pre-2-6 Loading commit data...
ChangeLog.pre-2-8 Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
INSTALL.in Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
NEWS.pre-1-0 Loading commit data...
README Loading commit data...
README.cvs-commits Loading commit data...
README.in Loading commit data...
README.win32 Loading commit data...
acconfig.h Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.h.win32.in Loading commit data...
configure.in Loading commit data...
gdk-2.0-uninstalled.pc.in Loading commit data...
gdk-2.0.pc.in Loading commit data...
gdk-pixbuf-2.0-uninstalled.pc.in Loading commit data...
gdk-pixbuf-2.0.pc.in Loading commit data...
gtk+-2.0-uninstalled.pc.in Loading commit data...
gtk+-2.0.pc.in Loading commit data...
gtk+.spec.in Loading commit data...
gtk-config-2.0.in Loading commit data...
gtk-zip.sh.in Loading commit data...
makecopyright Loading commit data...
makefile.msc Loading commit data...
sanitize-la.sh Loading commit data...
sanity_check Loading commit data...