diff options
author | Benjamin Otte <otte@redhat.com> | 2012-11-13 22:02:53 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-11-14 01:55:28 +0100 |
commit | c08efb2b3291692dd3ad12cc95d4daf3735a0630 (patch) | |
tree | 50c2559ae940c93c1376dba0b83ea0407cf505d6 /gtk/gtksizerequestcacheprivate.h | |
parent | c98ee1ec396ccd8cb4c87780ee08adad88fdf3e3 (diff) | |
download | gtk+-c08efb2b3291692dd3ad12cc95d4daf3735a0630.tar.gz |
sizerequest: Cache the request mode
... in the GtkSizeRequestCache. That way, we only need to query it once,
and can remove the caching code from GtkContainer.
Diffstat (limited to 'gtk/gtksizerequestcacheprivate.h')
-rw-r--r-- | gtk/gtksizerequestcacheprivate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtksizerequestcacheprivate.h b/gtk/gtksizerequestcacheprivate.h index 60c061bdfe..db15aa50e6 100644 --- a/gtk/gtksizerequestcacheprivate.h +++ b/gtk/gtksizerequestcacheprivate.h @@ -26,6 +26,7 @@ #define __GTK_SIZE_REQUEST_CACHE_PRIVATE_H__ #include <glib.h> +#include <gtk/gtkenums.h> G_BEGIN_DECLS @@ -56,6 +57,8 @@ typedef struct { CachedSize cached_width; CachedSize cached_height; + GtkSizeRequestMode request_mode: 3; + guint request_mode_valid : 1; guint cached_widths : 3; guint cached_heights : 3; guint last_cached_width : 3; |