summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@intel.com>2016-08-05 17:52:18 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-08-08 11:43:32 +0200
commite5c7108b3b979ec58218f97c0e7fca9cc9c2e0f9 (patch)
treea01c2b43c329fc8c31453a99635a8d59062ed602
parent6cc8c8dedb93708ce9ddc84831d9f51c8618370c (diff)
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.
-rw-r--r--gtk/gtk-play.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtk-play.c b/gtk/gtk-play.c
index a520bef..16afc6b 100644
--- a/gtk/gtk-play.c
+++ b/gtk/gtk-play.c
@@ -177,7 +177,7 @@ load_from_builder (const gchar * filename, gboolean register_sig_handler,
static void
delete_event_cb (GtkWidget * widget, GdkEvent * event, GtkPlay * play)
{
- gst_player_stop (play->player);
+ gtk_widget_destroy (GTK_WIDGET (play));
}
static void