mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
added a case for alt+enter switching fullscreen to simulate windows media player
Original commit message from CVS: added a case for alt+enter switching fullscreen to simulate windows media player
This commit is contained in:
parent
02c06eeb1f
commit
88fdf0bf16
2 changed files with 24 additions and 2 deletions
|
@ -1,3 +1,14 @@
|
|||
2001-12-06 Arik Devens <arik@gnome.org>
|
||||
|
||||
* gstmediaplay.c (window_key_press_event): Added a case for
|
||||
alt+return setting fullscreen to simulate the behavior of windows
|
||||
media player.
|
||||
|
||||
2001-12-06 Arik Devens <arik@gnome.org>
|
||||
|
||||
* gstmediaplay.c (window_key_press_event): Added a case for the m
|
||||
key to switch in and out of fullscreen.
|
||||
|
||||
2001-12-06 Arik Devens <arik@gnome.org>
|
||||
|
||||
* gstmediaplay.c (fullscreen_key_press_event): Added a case for
|
||||
|
|
|
@ -211,6 +211,10 @@ window_key_press_event (GtkWidget *widget,
|
|||
GdkEventKey *event,
|
||||
GstMediaPlay *mplay)
|
||||
{
|
||||
guint state;
|
||||
|
||||
state = event->state;
|
||||
|
||||
switch (event->keyval) {
|
||||
case GDK_space:
|
||||
if (mplay->play->state == GST_PLAY_PLAYING)
|
||||
|
@ -228,6 +232,13 @@ window_key_press_event (GtkWidget *widget,
|
|||
update_buttons (mplay, GST_PLAY_STATE(mplay->play));
|
||||
}
|
||||
break;
|
||||
case GDK_m:
|
||||
gst_media_play_set_fullscreen (mplay);
|
||||
break;
|
||||
case GDK_Return:
|
||||
if (state & GDK_MOD1_MASK)
|
||||
gst_media_play_set_fullscreen (mplay);
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue