• Alexander Larsson's avatar
    Add note about GtkMenuPositionFunc API changes. · 814957b4
    Alexander Larsson authored
    2000-11-08  Alexander Larsson  <alexl@redhat.com>
    
    	* docs/Changes-2.0.txt: Add note about GtkMenuPositionFunc
    	API changes.
    
    	* gtk/gtkmenu.c: Add support for scrolling menus.
    	Remove gtk_menu_append/prepend/insert, these have been moved to
    	gtkcompat.h as #defines.
    
    	* gtk/gtkcompat.h.in:
    	Add compatibility #defines for gtk_menu_append/prepend/insert
    
    	* gtk/gtkmenu.h: Add data needed for scrolling menus.
    	GtkMenuPositionFunc gets an extra argument push_in.
    	gtk_menu_append/prepend/insert removed.
    
    	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Change menu
    	positioning behaviour to fit to scrolling menus.
    
    	* gtk/gtkmenuitem.c (gtk_menu_item_forall): Don't recurse
    	into menuitem->submeny. That is wrong, and broke torn
    	off submenus of torn off menus, since they were unrealized
    	when the first menu was unrealized.
    
    	* gtk/gtkmenushell.[ch]: Virtualize gtk_menu_shell_insert() and
    	gtk_menu_shell_select_item() since these need to be overridden in
    	GtkMenu.
    
    	* gtk/gtkoptionmenu.c (gtk_opttion_menu_position): Change menu
    	positioning behaviour to fit to scrolling menus.
    	(gtk_option_menu_key_press, gtk_option_menu_button_press): Select
    	the current item so that it is prelighted when the menu pops up.
    	This is a workaround to the fact that the menu doesn't get the
    	initial enter event (due to grabs).
    
    	* gtk/gtkfilesel.c, gtk/gtkinputdialog.c, gtk/testgtk.c:
    	s/gtk_menu_append/gtk_menu_shell_append/
    
    	* gtk/gtknotebook.c:
    	s/gtk_menu_insert/gtk_menu_shell_insert/
    
    	* gtk/testgtk.c (create_menu, create_menus):
    	Create the first menu with 50 items so that menu scrolling
    	can be tested.
    
    
    	Patch from Jonathan Blandford  <jrb@redhat.com>
    
    	* gtk/gtkmenuitem.[ch] (gtk_menu_item_toggle_size_request): new
    	system to handle size requests.  First, we ask what the size of
    	the toggle is.  Then, when allocating the size, we allocate the
    	toggle_size first.  This way we can have multiple menu-item
    	classes w/o needing a seperate class for each.
    
    	* gtk/gtkmenu.c (gtk_menu_size_request): Actually use the new system.
    	* gtk/gtkmenu.c (gtk_menu_size_allocate): Use the new system.
    
    	* gtk/gtkcheckmenuitem.c
    	(gtk_check_menu_item_toggle_size_request): New function to handle
    	the toggle size-request.
    814957b4
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...
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.nanox Loading commit data...
README.win32 Loading commit data...
TODO Loading commit data...
TODO.xml Loading commit data...
acconfig.h Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.guess Loading commit data...
config.h.win32 Loading commit data...
config.sub Loading commit data...
configure.in Loading commit data...
gdk-2.0.pc.in Loading commit data...
gdk-pixbuf-2.0.pc.in Loading commit data...
gtk+-2.0.pc.in Loading commit data...
gtk+.spec.in Loading commit data...
gtk-2.0.m4 Loading commit data...
gtk-config-2.0.in Loading commit data...
gtk-config.in Loading commit data...
ltconfig Loading commit data...
ltmain.sh Loading commit data...
makecopyright Loading commit data...
sanity_check Loading commit data...