[geany/geany] 9d4127: Make the compat_widget_set_flag macro more robust