diff options
author | jstebbins <[email protected]> | 2009-07-24 21:57:35 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-07-24 21:57:35 +0000 |
commit | 0e2b1478f2b2b336a68887382fcffbc78cc79612 (patch) | |
tree | c13fc5ad6dcbbacb60b8730a4e2735f01fc3cdc1 /gtk/src/queuehandler.c | |
parent | a8510d9d290754ed2187cbf122dbeda5dae887bb (diff) |
LinGui: when stopping an encode, give the user options similar to macui
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2730 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r-- | gtk/src/queuehandler.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index fe3f2db87..8aca1f626 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -783,7 +783,7 @@ queue_remove_clicked_cb(GtkWidget *widget, gchar *path, signal_user_data_t *ud) if (status == GHB_QUEUE_RUNNING) { // Ask if wants to stop encode. - if (!ghb_cancel_encode(NULL)) + if (!ghb_cancel_encode2(ud, NULL)) { return; } @@ -1196,8 +1196,8 @@ queue_start_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) state = ghb_get_queue_state(); if (state & (GHB_STATE_WORKING | GHB_STATE_SCANNING | GHB_STATE_MUXING)) { - if (ghb_cancel_encode(NULL)) - ud->cancel_encode = TRUE; + ghb_cancel_encode(ud, "You are currently encoding. " + "What would you like to do?"); return; } @@ -1345,7 +1345,7 @@ queue_key_press_cb( if (status == GHB_QUEUE_RUNNING) { // Ask if wants to stop encode. - if (!ghb_cancel_encode(NULL)) + if (!ghb_cancel_encode2(ud, NULL)) { return TRUE; } |