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
commite82333ab704419307fa1a3703f492e4f04b51571 (patch)
tree2fa97deeca10bac87fa04eafe9401f900dc1f47e
parentf8d4796a57bb28a2089791cb7b5c7d10427bfc63 (diff)
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.
-rw-r--r--playback/player/gtk/gtk-play.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/playback/player/gtk/gtk-play.c b/playback/player/gtk/gtk-play.c
index a520bef..16afc6b 100644
--- a/playback/player/gtk/gtk-play.c
+++ b/playback/player/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