Closed jonbrett closed 10 years ago
Nice idea! I guess the file parsing would have to be very robust so it doesn't kill the applet if mistakes are made in the file. (Which is anyway something to work on).
I wonder if it is possible to get rid of the file solution altogether. See issue #31
Getting rid of the feed file would be my preferred solution. It depends how difficult it is / how long it might take as to whether this should be done beforehand.
No longer required since #31 has replaced feed files
Currently when the user opts to use a feeds file via the applet settings, they are responsible for reloading the contents of that file via the "Reload Feeds File" entry in the applet right-click menu.
A more elegant solution would be for the applet to use a Gio.FileMonitor on the feeds file and get notified of update events.
See monitor method in Gio.File docs: http://www.roojs.org/seed/gir-1.2-gtk-3.0/seed/Gio.File.html
See also Gio.FileMonitor GTK documentation (e.g. we will need to connect to the
changed
event). http://www.roojs.org/seed/gir-1.2-gtk-3.0/seed/Gio.FileMonitor.html