Special-case flag value of 0. Instead of returning the first random
authorTim-Philipp Müller <tpm@src.gnome.org>
Fri, 12 Aug 2005 16:09:19 +0000 (16:09 +0000)
committerTim-Philipp Müller <tpm@src.gnome.org>
Fri, 12 Aug 2005 16:09:19 +0000 (16:09 +0000)
commit7788ead1376fd75d4798c5602b9ad6b742020570
tree4a02d8f6eb86314ffc59d0ca52176b6eadb76987
parent5534bedf75faecde2c57f9580286563099e011a4
Special-case flag value of 0. Instead of returning the first random

* gobject/genums.c: (g_flags_get_first_value): Special-case flag
value of 0. Instead of returning the first random GFlagsValue
we come across, return the GFlagsValue for 0 if it exists or
NULL if it does not exist. Never return the GFlagsValue for 0
if the requested flags value is nonzero.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
gobject/genums.c