GNOME Bugzilla – Bug 128013
glade_flags_from_string() can't handle spaces
Last modified: 2004-12-22 21:47:04 UTC
Glade uses spaces to separate flags like this: <property name="events">GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK</property> But it looks like glade_flags_from_string() doesn't handle that. Also it seems to silently fail. It may be better to output a warning if the flags are not valid.
Created attachment 21894 [details] [review] Patch from Pedro Abelleira Seco (note that '//' isn't portable)
Created attachment 21896 [details] [review] Better patch with Unicode support and a bug fix
The same function is also in Glade, so I've updated it there as well. I've tested it out a fair bit and it seems fine. It also outputs a warning for unknown flags.
*** Bug 113763 has been marked as a duplicate of this bug. ***
*** Bug 113889 has been marked as a duplicate of this bug. ***