[Geany] [PATCH] plugin api request filetypes_get_from_uid()

Yura Siamashka yurand2 at xxxxx
Wed Mar 12 09:13:36 UTC 2008


Hi

I need to loop all supported geany filetypes in my geanydoc plugin (http://repo.or.cz/w/geanydoc.git).

filetypes_get_from_uid() is just what I need. Please add it to plugin api. Patch attached.

Also I notice filetypes_get_from_uid() is written somehow strange. Since "id" field also act as pos in filetypes array I think it is not necessary to loop filetypes every time. Second patch use simple if to do job.

-- 
Best regards,
Yura Siamshka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filetypes_get_from_uid.patch
Type: application/octet-stream
Size: 526 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080312/7f052a4a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get_from_uid_to_plugin.patch
Type: application/octet-stream
Size: 1051 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080312/7f052a4a/attachment-0001.obj>


More information about the Users mailing list