[snappy] ui: redraw seek box when seeking with keys
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] ui: redraw seek box when seeking with keys
- Date: Tue, 9 Apr 2013 16:05:55 +0000 (UTC)
commit 100dc9d38db69708aa8bcca529301cdc03175929
Author: Luis de Bethencourt <luis debethencourt com>
Date: Tue Apr 9 12:05:48 2013 -0400
ui: redraw seek box when seeking with keys
src/user_interface.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/user_interface.c b/src/user_interface.c
index 9d5745a..1fbe53c 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -322,6 +322,10 @@ event_cb (ClutterStage * stage, ClutterEvent * event, UserInterface * ui)
pos = CLAMP (pos, 0, ui->engine->media_duration);
engine_seek (ui->engine, pos, FALSE);
+ ui->playback_position = (float)pos / ui->engine->media_duration;
+ // Invalidate calls a redraw of the canvas
+ clutter_content_invalidate (ui->seek_canvas);
+
handled = TRUE;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]