]> Pileus Git - ~andy/gtk/commit - gtk/gtkarrow.c
Completely removed requisition cache from GtkWidget instance structure.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 7 Sep 2010 22:25:47 +0000 (00:25 +0200)
committerJavier Jardón <jjardon@gnome.org>
Wed, 8 Sep 2010 16:50:24 +0000 (18:50 +0200)
commit993400742041418637e1b09b462e311665ce00fb
tree1dbafa241869741844e5d98a1e3be563430521fe
parent4e6a665e613fc7c65874bc5a121c7b87fe65b3e2
Completely removed requisition cache from GtkWidget instance structure.

Since we have a new mechanism for requesting sizes: GtkSizeRequestIface;
it makes no sense to maintain this cache on the GtkWidget structure...
removing the requisition cache however does not break the old "size-request"
signal which is there for backwards compatability reasons.

In any case widget->requisition should not have been accessed,
gtk_widget_get_child_requisition() would have been the correct way
to consult the cache.

This commit also deprecates the newly added gtk_widget_get_requisition()
API and makes it fallback on gtk_size_request_get_size().
19 files changed:
gtk/gtkarrow.c
gtk/gtkcontainer.c
gtk/gtkfontsel.c
gtk/gtkhandlebox.c
gtk/gtkiconview.c
gtk/gtkimage.c
gtk/gtkmenu.c
gtk/gtkmisc.c
gtk/gtkpathbar.c
gtk/gtkprivate.h
gtk/gtkruler.c
gtk/gtkseparator.c
gtk/gtksizegroup.c
gtk/gtksizerequest.c
gtk/gtkspinbutton.c
gtk/gtktextview.c
gtk/gtktreeview.c
gtk/gtkwidget.c
gtk/gtkwidget.h