[totem] main: Don't allow seeking with keys if not seekable



commit af87f39d303fe57318023c964597e1e7ea971cfc
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 11 13:43:51 2014 +0100

    main: Don't allow seeking with keys if not seekable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723981

 src/totem-object.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index ddf00fa..fc75d7c 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3232,7 +3232,8 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event)
                        if (gtk_widget_get_direction (totem->win) == GTK_TEXT_DIR_RTL)
                                is_forward = !is_forward;
 
-                       totem_object_handle_seek (totem, event, is_forward);
+                       if (totem_object_is_seekable (totem))
+                               totem_object_handle_seek (totem, event, is_forward);
                } else {
                        if (event->keyval == GDK_KEY_Left)
                                bacon_video_widget_dvd_event (totem->bvw, BVW_DVD_ROOT_MENU_LEFT);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]