Refactoring: rename progress update func of output renderer to gds_output_renderer_update_async_progress()
This commit is contained in:
parent
977547d91d
commit
94ef879a94
@ -152,7 +152,7 @@ int gds_output_renderer_render_output_async(GdsOutputRenderer *renderer, struct
|
|||||||
* @param renderer GdsOutputrenderer object
|
* @param renderer GdsOutputrenderer object
|
||||||
* @param status Status to supply to signal emission
|
* @param status Status to supply to signal emission
|
||||||
*/
|
*/
|
||||||
void gds_output_renderer_update_gui_status_from_async(GdsOutputRenderer *renderer, const char *status);
|
void gds_output_renderer_update_async_progress(GdsOutputRenderer *renderer, const char *status);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
@ -415,7 +415,7 @@ ret_parent:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Update asyc progress*/
|
/* Update asyc progress*/
|
||||||
gds_output_renderer_update_gui_status_from_async(renderer, receive_message);
|
gds_output_renderer_update_async_progress(renderer, receive_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
waitpid(process_id, NULL, 0);
|
waitpid(process_id, NULL, 0);
|
||||||
@ -457,7 +457,7 @@ static int cairo_renderer_render_output(GdsOutputRenderer *renderer,
|
|||||||
else
|
else
|
||||||
pdf_file = output_file;
|
pdf_file = output_file;
|
||||||
|
|
||||||
gds_output_renderer_update_gui_status_from_async(renderer, "Rendering Cairo Output...");
|
gds_output_renderer_update_async_progress(renderer, "Rendering Cairo Output...");
|
||||||
ret = cairo_renderer_render_cell_to_vector_file(renderer, cell, layer_infos, pdf_file, svg_file, scale);
|
ret = cairo_renderer_render_cell_to_vector_file(renderer, cell, layer_infos, pdf_file, svg_file, scale);
|
||||||
|
|
||||||
if (settings)
|
if (settings)
|
||||||
|
@ -413,7 +413,7 @@ static gboolean idle_event_processor_callback(gpointer user_data)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gds_output_renderer_update_gui_status_from_async(GdsOutputRenderer *renderer, const char *status)
|
void gds_output_renderer_update_async_progress(GdsOutputRenderer *renderer, const char *status)
|
||||||
{
|
{
|
||||||
GSource *idle_event_processor;
|
GSource *idle_event_processor;
|
||||||
GdsOutputRendererPrivate *priv;
|
GdsOutputRendererPrivate *priv;
|
||||||
|
@ -241,7 +241,7 @@ static void render_cell(struct gds_cell *cell, GList *layer_infos, FILE *tex_fil
|
|||||||
|
|
||||||
status = g_string_new(NULL);
|
status = g_string_new(NULL);
|
||||||
g_string_printf(status, "Generating cell %s", cell->name);
|
g_string_printf(status, "Generating cell %s", cell->name);
|
||||||
gds_output_renderer_update_gui_status_from_async(renderer, status->str);
|
gds_output_renderer_update_async_progress(renderer, status->str);
|
||||||
g_string_free(status, TRUE);
|
g_string_free(status, TRUE);
|
||||||
|
|
||||||
/* Draw polygons of current cell */
|
/* Draw polygons of current cell */
|
||||||
|
Loading…
Reference in New Issue
Block a user