[totem] Show an OSD when middle-clicking on canvas
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem] Show an OSD when middle-clicking on canvas
- Date: Mon, 16 Nov 2009 11:58:59 +0000 (UTC)
commit 3cdece9999694a09422b420d8334bb2b51100b41
Author: Bastien Nocera <hadess hadess net>
Date: Mon Nov 16 11:54:57 2009 +0000
Show an OSD when middle-clicking on canvas
When using the middle-click of the mouse to play/pause playback,
show an OSD to inform the user that something happened.
src/totem-object.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index bcb6b16..1d10be7 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3343,7 +3343,15 @@ on_video_button_press_event (BaconVideoWidget *bvw, GdkEventButton *event,
totem_action_fullscreen_toggle(totem);
return TRUE;
} else if (event->type == GDK_BUTTON_PRESS && event->button == 2) {
- totem_action_play_pause(totem);
+ if (totem_is_fullscreen (totem) != FALSE) {
+ const char *icon_name;
+ if (bacon_video_widget_is_playing (totem->bvw) == FALSE)
+ icon_name = "gtk-media-play";
+ else
+ icon_name = "gtk-media-pause";
+ totem_fullscreen_show_popups_or_osd (totem->fs, icon_name, FALSE);
+ }
+ totem_action_play_pause (totem);
return TRUE;
} else if (event->type == GDK_BUTTON_PRESS && event->button == 3) {
totem_action_menu_popup (totem, event->button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]