<div dir="ltr"><div class="gmail_default" style="font-size:small">Andrew, thanks. I am looking at this also and will test today. (I did check into GIT the ru.po change anyway).<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 12, 2021 at 4:14 AM Andrew Randrianasulu via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
This one survived actual batch render - I forgot about enable/disable button calls ....<br>
<br>
so, if you set UNSAFE_BUTTON to 1 it will appear, if you leave it at 0 it will be hidden.<br>
Now, if THIS patch actually works we can think about hooking it up to pref window .....<br>
<br>
<br>
---<br>
<br>
diff --git a/cinelerra-5.1/cinelerra/batchrender.C b/cinelerra-5.1/cinelerra/batchrender.C<br>
index 6dcdbc62..d85d0e8c 100644<br>
--- a/cinelerra-5.1/cinelerra/batchrender.C<br>
+++ b/cinelerra-5.1/cinelerra/batchrender.C<br>
@@ -60,6 +60,8 @@<br>
#include "dvdcreate.h"<br>
#include "bdcreate.h"<br>
<br>
+#define UNSAFE_BUTTON 0<br>
+<br>
int BatchRenderThread::column_widths[] = { 42, 42, 42, 222, 222, 150 };<br>
const char *BatchRenderThread::column_titles[] = {<br>
N_("Enabled"), N_("Labeled"), N_("Farmed"), N_("Output"), N_("EDL"), N_("Elapsed")<br>
@@ -382,6 +384,7 @@ void BatchRenderThread::use_current_edl()<br>
gui->edl_path_text->update(get_current_edl());<br>
}<br>
<br>
+<br>
void BatchRenderThread::update_selected_edl()<br>
{<br>
FileXML xml_file;<br>
@@ -396,6 +399,8 @@ void BatchRenderThread::update_selected_edl()<br>
}<br>
}<br>
<br>
+<br>
+<br>
BatchRenderJob* BatchRenderThread::get_current_job()<br>
{<br>
return current_job >= 0 && current_job < jobs.total ?<br>
@@ -792,8 +797,11 @@ void BatchRenderGUI::create_objects()<br>
y2 = y + edl_path_browse->get_h() + mwindow->theme->widget_border;<br>
<br>
x = x2; y = y2;<br>
+ if (UNSAFE_BUTTON) {<br>
add_subwindow(update_selected_edl = new BatchRenderUpdateEDL(thread, x, y));<br>
y += update_selected_edl->get_h() + mwindow->theme->widget_border;<br>
+}<br>
+<br>
add_subwindow(use_current_edl = new BatchRenderCurrentEDL(thread, x, y));<br>
y += use_current_edl->get_h() + mwindow->theme->widget_border;<br>
if( !mwindow->edl || !mwindow->edl->path[0] ) use_current_edl->disable();<br>
@@ -835,6 +843,7 @@ void BatchRenderGUI::button_disable()<br>
new_batch->disable();<br>
delete_batch->disable();<br>
use_current_edl->disable();<br>
+ if (UNSAFE_BUTTON)<br>
update_selected_edl->disable();<br>
}<br>
<br>
@@ -844,6 +853,7 @@ void BatchRenderGUI::button_enable()<br>
delete_batch->enable();<br>
if( mwindow->edl && mwindow->edl->path[0] )<br>
use_current_edl->enable();<br>
+ if (UNSAFE_BUTTON)<br>
update_selected_edl->enable();<br>
}<br>
<br>
@@ -876,8 +886,10 @@ int BatchRenderGUI::resize_event(int w, int h)<br>
y2 = y + edl_path_browse->get_h() + mwindow->theme->widget_border;<br>
<br>
x = x2; y = y2;<br>
+ if (UNSAFE_BUTTON) {<br>
update_selected_edl->reposition_window(x, y);<br>
y += update_selected_edl->get_h() + mwindow->theme->widget_border;<br>
+}<br>
use_current_edl->reposition_window(x, y);<br>
y += use_current_edl->get_h() + mwindow->theme->widget_border;<br>
new_batch->reposition_window(x, y);<br>
@@ -1236,6 +1248,7 @@ int BatchRenderCurrentEDL::handle_event()<br>
return 1;<br>
}<br>
<br>
+<br>
BatchRenderUpdateEDL::BatchRenderUpdateEDL(BatchRenderThread *thread,<br>
int x,<br>
int y)<br>
@@ -1244,8 +1257,10 @@ BatchRenderUpdateEDL::BatchRenderUpdateEDL(BatchRenderThread *thread,<br>
this->thread = thread;<br>
}<br>
<br>
+<br>
int BatchRenderUpdateEDL::handle_event()<br>
{<br>
+ if (UNSAFE_BUTTON)<br>
thread->update_selected_edl();<br>
return 1;<br>
}<br>
<br>
----<br>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div>