summaryrefslogtreecommitdiff
path: root/gtk/gtkbitmaskprivateimpl.h
Commit message (Collapse)AuthorAgeFilesLines
* bitmask: Use gsize, not size_tBenjamin Otte2015-09-271-4/+4
| | | | We want to use the same type everywhere to avoid surprises.
* Do not return on void functionsIgnacio Casal Quinteiro2015-02-191-2/+2
|
* bitmask: Fix intersection codeBenjamin Otte2012-11-101-1/+1
| | | | | | | | | With the fix in 77912a65e2aa6eb9cfee994fa93bbfbc6b9f8538, another bug got visible: booleans are 32 bits, so if the intersection between the 2 bitmasks happened in higher bits, the return value would be truncated to FALSE. This actually made slider handles disappear, so it was pretty visible.
* Fix cnp bug in _gtk_bitmask_intersectsAlexander Larsson2012-11-091-2/+2
| | | | | | | | We need to use the allocated codepath if *any* argument is allocated, not if one arg is not allocated. This bug caused unnecessary calls to _gtk_bitmask_is_allocated, as well as return completely wrong result if both bitmask are allocated.
* Fix compile error from splitting bitmask codeJohn Ralls2012-03-011-1/+0
| | | | GtkBitMask was typedef'd twice.
* bitmask: Don't allocate memory for small bitmasksNeil Roberts2012-03-011-10/+62
| | | | Code taken more or less verbatim from CoglBitmask.
* bitmask: Split bitmask code into twoBenjamin Otte2012-03-011-0/+116
This does nothing but turn all GtkBitmask functions into static inline functions that call the gtk_allocated_bitmask_*() equivalent. The implementation of the static functions has also been put into a private header, to not scare people who want to see how things are implemented.