+
+ case (TIMED_MENU_STAT): {
+ struct stat stat_buf;
+
+ if (stat(TIMED_MENU_DATA(data)->command, &stat_buf) == -1) {
+ g_warning("Unable to stat %s: %s",
+ TIMED_MENU_DATA(data)->command,
+ strerror(errno));
+ break;
+ }
+
+ if (stat_buf.st_mtime > TIMED_MENU_DATA(data)->mtime) {
+ g_warning("file changed");
+ TIMED_MENU_DATA(data)->mtime = stat_buf.st_mtime;
+ /* TODO: parse */
+ }
+ }