Xfce timer plugin
Kemal Eroglu <[email protected]>
| Newsgroups | gmane.comp.desktop.xfce.goodies.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, Here's my version 0.1 of a timer plugin for XFCE4. It's similar to KTeaTime for those of you who are faimilar with KDE. You can define a number of alarms. You can either specify a countdown period or a time of the day for the alarm. You select the one you want from a popup menu and start the coundown. When the countdown ends, a Gtk warning window is displayed, or, a command specified by the user is run. Clearly, this first version is waiting for testers and suggestions. Some of the ideas in my mind are in the TODO file. The only serious issue right now is the progressbar: This is the main widget in the plugin display; it "fills" as the countdown approaches to its end. I'm trying to get a thin progressbar but the panel insists on producing a big, fat one. One other issue is that you get some warnings when you remove the plugin right after you add it to the panel. It doesn't crash though. It appears to be related to the freeing of a gtk_list_store object (pd->list in the code). Finally: I'm supposing that this is a plugin which would be added to the panel only when needed; but one also would like to keep the settings. The XML system provided in the plugin read/write_config functions loses the settings when the plugin is removed from the panel. For this reason I'm currently writing the settings to the file ~/.config/xfce4/panel/timer_settings It's a file with the format of a GKeyFile. This may not be a very good solution; and I'm waiting for hints on how to properly achieve the purpose. Test and enjoy! Ilgar
xfce-timer-0.1.tar.bz2
(application/x-bzip2, 301 KB) - not displayed