summaryrefslogtreecommitdiff
path: root/gtk/gtkwidgetprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-11-13 13:41:05 +0100
committerBenjamin Otte <otte@redhat.com>2012-11-14 01:55:28 +0100
commit0a1a2ac1484370f8e95bfa3576a7ad211f9b6548 (patch)
tree3c856d34e888cc380f7197201b7c9de33627a685 /gtk/gtkwidgetprivate.h
parentaa989a637a47c0c5755bb8a75753e8cf2d245ba1 (diff)
downloadgtk+-0a1a2ac1484370f8e95bfa3576a7ad211f9b6548.tar.gz
sizerequest: Split out size request cache code into separate header
Diffstat (limited to 'gtk/gtkwidgetprivate.h')
-rw-r--r--gtk/gtkwidgetprivate.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 3ebd8ebf62..06ba4afa5e 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -31,41 +31,6 @@
G_BEGIN_DECLS
-/* Cache as many ranges of height-for-width
- * (or width-for-height) as can be rational
- * for a said widget to have, if a label can
- * only wrap to 3 lines, only 3 caches will
- * ever be allocated for it.
- */
-#define GTK_SIZE_REQUEST_CACHED_SIZES (5)
-
-typedef struct {
- gint minimum_size;
- gint natural_size;
-} CachedSize;
-
-typedef struct
-{
- gint lower_for_size; /* The minimum for_size with the same result */
- gint upper_for_size; /* The maximum for_size with the same result */
- CachedSize cached_size;
-} SizeRequest;
-
-typedef struct {
- SizeRequest **widths;
- SizeRequest **heights;
-
- CachedSize cached_width;
- CachedSize cached_height;
-
- guint cached_widths : 3;
- guint cached_heights : 3;
- guint last_cached_width : 3;
- guint last_cached_height : 3;
- guint cached_base_width : 1;
- guint cached_base_height : 1;
-} SizeRequestCache;
-
void _gtk_widget_set_visible_flag (GtkWidget *widget,
gboolean visible);
gboolean _gtk_widget_get_in_reparent (GtkWidget *widget);