Ok, here's the patch which should solve the issue. This will refresh the font lists for both the font dialog and font toolbar. On my fc17 linux system it takes about 3 seconds to detect a font added to the system (by using konqueror to drop a font into the "fonts:/Personal/" url for example). Also works when removing a font from the system, in which case, if the font was the currently used one, it selects another (the next below it, according to my testing), but if the font is added again, it sets that back.
Please test and let me know if you have any problems, etc. Especially needed are non-linux testers. Thanks.
Please also review and check for any obvious memory leaks, bad coding practices, etc.
Many thanks to jabiertxo for the help and code he provided.
Ok, here's the patch which should solve the issue. This will refresh the font lists for both the font dialog and font toolbar. On my fc17 linux system it takes about 3 seconds to detect a font added to the system (by using konqueror to drop a font into the "fonts:/Personal/" url for example). Also works when removing a font from the system, in which case, if the font was the currently used one, it selects another (the next below it, according to my testing), but if the font is added again, it sets that back.
Please test and let me know if you have any problems, etc. Especially needed are non-linux testers. Thanks.
Please also review and check for any obvious memory leaks, bad coding practices, etc.
Many thanks to jabiertxo for the help and code he provided.