diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-11-26 13:26:25 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-12-07 18:07:44 +0100 |
commit | 45787e05710674fd8c96873204cb464ce84067f3 (patch) | |
tree | f52009105968559e70aeba6107b7878372660fc9 | |
parent | 8b3664bd8d21c122778872081e3a5e2f786f4c65 (diff) | |
download | totem-45787e05710674fd8c96873204cb464ce84067f3.tar.gz |
main: Show popup when seeking with the keyboard
So that we can know where in the film we are.
https://bugzilla.gnome.org/show_bug.cgi?id=728735
-rw-r--r-- | src/totem-object.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/totem-object.c b/src/totem-object.c index 8dc021316..403e45bb8 100644 --- a/src/totem-object.c +++ b/src/totem-object.c @@ -3223,6 +3223,7 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event) case GDK_KEY_B: case GDK_KEY_b: totem_object_seek_previous (totem); + bacon_video_widget_show_popup (totem->bvw); break; case GDK_KEY_C: case GDK_KEY_c: @@ -3254,6 +3255,7 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event) case GDK_KEY_n: case GDK_KEY_End: totem_object_seek_next (totem); + bacon_video_widget_show_popup (totem->bvw); break; case GDK_KEY_OpenURL: totem_object_set_fullscreen (totem, FALSE); @@ -3340,8 +3342,10 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event) if (switch_rtl && gtk_widget_get_direction (totem->win) == GTK_TEXT_DIR_RTL) is_forward = !is_forward; - if (totem_object_is_seekable (totem)) + if (totem_object_is_seekable (totem)) { totem_object_handle_seek (totem, event, is_forward); + bacon_video_widget_show_popup (totem->bvw); + } } else { if (event->keyval == GDK_KEY_Left || event->keyval == GDK_KEY_Page_Down) bacon_video_widget_dvd_event (totem->bvw, BVW_DVD_ROOT_MENU_LEFT); @@ -3351,6 +3355,7 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event) break; case GDK_KEY_Home: totem_object_seek (totem, 0); + bacon_video_widget_show_popup (totem->bvw); break; case GDK_KEY_Up: if (bacon_video_widget_has_menus (totem->bvw) != FALSE) @@ -3404,6 +3409,7 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event) case GDK_KEY_KP_Add: if (mask != GDK_CONTROL_MASK) { totem_object_seek_next (totem); + bacon_video_widget_show_popup (totem->bvw); } else { totem_object_set_zoom (totem, TRUE); } @@ -3412,6 +3418,7 @@ totem_object_handle_key_press (TotemObject *totem, GdkEventKey *event) case GDK_KEY_KP_Subtract: if (mask != GDK_CONTROL_MASK) { totem_object_seek_previous (totem); + bacon_video_widget_show_popup (totem->bvw); } else { totem_object_set_zoom (totem, FALSE); } |