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>
|
2001-12-06 Arik Devens <arik@gnome.org>
|
||||||
|
|
||||||
* gstmediaplay.c (fullscreen_key_press_event): Added a case for
|
* gstmediaplay.c (fullscreen_key_press_event): Added a case for
|
||||||
|
|
|
@ -208,9 +208,13 @@ gst_media_play_init (GstMediaPlay *mplay)
|
||||||
|
|
||||||
static int
|
static int
|
||||||
window_key_press_event (GtkWidget *widget,
|
window_key_press_event (GtkWidget *widget,
|
||||||
GdkEventKey *event,
|
GdkEventKey *event,
|
||||||
GstMediaPlay *mplay)
|
GstMediaPlay *mplay)
|
||||||
{
|
{
|
||||||
|
guint state;
|
||||||
|
|
||||||
|
state = event->state;
|
||||||
|
|
||||||
switch (event->keyval) {
|
switch (event->keyval) {
|
||||||
case GDK_space:
|
case GDK_space:
|
||||||
if (mplay->play->state == GST_PLAY_PLAYING)
|
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));
|
update_buttons (mplay, GST_PLAY_STATE(mplay->play));
|
||||||
}
|
}
|
||||||
break;
|
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;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue