mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
playback/player: gtk-play: provide similar behaviour for quit and close
In x86 targets, gtk-play just pause rather than quitting the application when we click the close button (delete-event). Change the callback function to get similar behaviour when we click on "Quit" menu option.
This commit is contained in:
parent
f8d4796a57
commit
e82333ab70
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ load_from_builder (const gchar * filename, gboolean register_sig_handler,
|
||||||
static void
|
static void
|
||||||
delete_event_cb (GtkWidget * widget, GdkEvent * event, GtkPlay * play)
|
delete_event_cb (GtkWidget * widget, GdkEvent * event, GtkPlay * play)
|
||||||
{
|
{
|
||||||
gst_player_stop (play->player);
|
gtk_widget_destroy (GTK_WIDGET (play));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue