Code

screen_play, status_bar: update scrolling with a GLib timer
[ncmpc.git] / src / hscroll.h
index cad3f17ddae93404c79774a9a4e4a76feafd607a..fadbae9af4ab978fe7b306a4a124499d98ebc164 100644 (file)
@@ -24,7 +24,6 @@
 
 struct hscroll {
        gsize offset;
-       GTime t; /* GTime is equivalent to time_t */
 };
 
 static inline void
@@ -33,6 +32,12 @@ hscroll_reset(struct hscroll *hscroll)
        hscroll->offset = 0;
 }
 
+static inline void
+hscroll_step(struct hscroll *hscroll)
+{
+       ++hscroll->offset;
+}
+
 char *
 strscroll(struct hscroll *hscroll, char *str, char *separator, unsigned width);