Fix adding files in ProjectBrowser
        instead of switch of path indices, use a custom TreePath with an enum as path_type for retrieve added document type.
When glade file is added, allow only ".ui" as extension.