1 From 220c2659a45dd354270a465c45197970dae5f548 Mon Sep 17 00:00:00 2001
2 From: "Maxin B. John" <maxin.john@intel.com>
3 Date: Fri, 5 Aug 2016 17:52:18 +0300
4 Subject: [PATCH] gtk-play: provide similar behaviour for quit and close
6 In x86 targets, gtk-play just pause rather than quitting the application
7 when we click the close button (delete-event). Change the callback function
8 to get similar behaviour when we click on "Quit" menu option.
10 Upstream-Status: Accepted
12 Signed-off-by: Maxin B. John <maxin.john@intel.com>
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/gtk/gtk-play.c b/gtk/gtk-play.c
18 index a520bef..16afc6b 100644
21 @@ -177,7 +177,7 @@ load_from_builder (const gchar * filename, gboolean register_sig_handler,
23 delete_event_cb (GtkWidget * widget, GdkEvent * event, GtkPlay * play)
25 - gst_player_stop (play->player);
26 + gtk_widget_destroy (GTK_WIDGET (play));