mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Don't be too strict when checking icon flags. (#435062)
2007-05-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkiconcachevalidator.c: Don't be too strict when checking icon flags. (#435062) svn path=/trunk/; revision=17767
This commit is contained in:
parent
321817db53
commit
fdd5aa6e5b
@ -1,3 +1,8 @@
|
||||
2007-05-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconcachevalidator.c: Don't be too strict when checking
|
||||
icon flags. (#435062)
|
||||
|
||||
2007-05-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/Makefile.am: When generating gtkbuiltincache.h, only copy
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include <gdk-pixbuf/gdk-pixdata.h>
|
||||
|
||||
|
||||
#define VERBOSE(x)
|
||||
#define VERBOSE(x) x
|
||||
|
||||
#define check(name,condition) \
|
||||
if (!(condition)) \
|
||||
@ -262,8 +262,7 @@ check_image (CacheInfo *info,
|
||||
get_uint32 (info, offset + 4, &image_data_offset));
|
||||
|
||||
check ("image index", index < info->n_directories);
|
||||
check ("image flags", flags == 1 || flags == 2 || flags == 4 ||
|
||||
flags == 9 || flags == 10 || flags == 12);
|
||||
check ("image flags", flags < 16);
|
||||
|
||||
if (image_data_offset != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user