Refactoring: rename progress update func of output renderer to gds_output_renderer_update_async_progress()

This commit is contained in:
Mario Hüttel 2019-09-19 21:44:30 +02:00
parent 5f6dbbed0e
commit 291ded0277
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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)

View File

@ -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;

View File

@ -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 */