diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-02-18 22:08:41 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-02-18 22:08:41 +0000 |
commit | 8fe564e37a83dbbc1de33cc96e0b648621ac4859 (patch) | |
tree | cf2e4b77779db271dfcb23a432e5f096130bf80b /docs/widget_system.txt | |
parent | a2bf986bd08d59268f8836aede4f2321edce841a (diff) | |
download | gtk+-8fe564e37a83dbbc1de33cc96e0b648621ac4859.tar.gz |
Add some docs for GTK_NEED_REQUEST GTK_NEED_ALLOCATION.
Mon Feb 18 16:44:00 2002 Owen Taylor <otaylor@redhat.com>
* docs/widget_system.txt: Add some docs for GTK_NEED_REQUEST
GTK_NEED_ALLOCATION.
* gtk/gtkmenu.c (gtk_menu_popup): Scroll the menu
to the right place before showing the menu to
avoid spurious enter events.
* gtk/gtkmenu.c (gtk_menu_realize): Only scroll
if there is an active menu item.
* gtk/gtkwidget.c (gtk_widget_init): Set RESIZE_NEEDED
ALLOC_NEEDED initially.
Diffstat (limited to 'docs/widget_system.txt')
-rw-r--r-- | docs/widget_system.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/widget_system.txt b/docs/widget_system.txt index 26efd02acd..eb7dce32d2 100644 --- a/docs/widget_system.txt +++ b/docs/widget_system.txt @@ -195,6 +195,20 @@ GTK_IN_REPARENT: to have this flag set to prevent natural unrealization on the process of getting unparented. +GTK_NEED_REQUEST: + This flag is set if the widget doesn't have an up to date + requisition. If this flag is set, we must actually emit ::size-request + when gtk_widget_size_request() is called. Otherwise, we can + simply widget->requisition. We keep track of this all the time + howevever, widgets with this flag set are only added to the resize + queue if they are viewable. + +GTK_NEED_ALLOCATION: + This flag is set if the widget doesn't have an up to date + allocation. If this flag is set, we must actually emit ::size-allocate + when gtk_widget_size_allocate() is called, even if the new allocation + is the same as the current allocation. + Related Macros: GTK_WIDGET_DRAWABLE: |