mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Compare commits
7 Commits
mpris-comp
...
ff054743e6
Author | SHA1 | Date | |
---|---|---|---|
|
ff054743e6 | ||
|
9432156aec | ||
|
47d3ebe693 | ||
|
5f8270f0e8 | ||
|
54f059aaa3 | ||
|
f63e13ed39 | ||
|
daadabba8d |
Submodule pkgs/flatpak/flathub updated: b7c25acba8...3a672be190
@@ -582,7 +582,7 @@ _create_pipeline_svg_file_in_thread (GTask *task, GObject *source G_GNUC_UNUSED,
|
|||||||
GVC_t *gvc;
|
GVC_t *gvc;
|
||||||
gchar *path, *template = NULL, *dot_data = NULL, *img_data = NULL;
|
gchar *path, *template = NULL, *dot_data = NULL, *img_data = NULL;
|
||||||
gint fd;
|
gint fd;
|
||||||
guint size = 0;
|
gsize size = 0;
|
||||||
|
|
||||||
if (!(tmp_subdir = _create_tmp_subdir ("pipelines", cancellable, &error)))
|
if (!(tmp_subdir = _create_tmp_subdir ("pipelines", cancellable, &error)))
|
||||||
goto finish;
|
goto finish;
|
||||||
@@ -610,7 +610,16 @@ _create_pipeline_svg_file_in_thread (GTask *task, GObject *source G_GNUC_UNUSED,
|
|||||||
|
|
||||||
gvc = gvContext ();
|
gvc = gvContext ();
|
||||||
gvLayout (gvc, graph, "dot");
|
gvLayout (gvc, graph, "dot");
|
||||||
|
|
||||||
|
#ifdef HAVE_GVC_13
|
||||||
gvRenderData (gvc, graph, "svg", &img_data, &size);
|
gvRenderData (gvc, graph, "svg", &img_data, &size);
|
||||||
|
#else
|
||||||
|
{
|
||||||
|
guint tmp_size = 0; // Temporary uint to satisfy older API
|
||||||
|
gvRenderData (gvc, graph, "svg", &img_data, &tmp_size);
|
||||||
|
size = tmp_size;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
agclose (graph);
|
agclose (graph);
|
||||||
gvFreeContext (gvc);
|
gvFreeContext (gvc);
|
||||||
|
@@ -105,6 +105,9 @@ if not pp_option.disabled()
|
|||||||
if cgraph_dep.found() and gvc_dep.found()
|
if cgraph_dep.found() and gvc_dep.found()
|
||||||
clapperapp_c_args += ['-DHAVE_GRAPHVIZ']
|
clapperapp_c_args += ['-DHAVE_GRAPHVIZ']
|
||||||
clapperapp_deps += [cgraph_dep, gvc_dep]
|
clapperapp_deps += [cgraph_dep, gvc_dep]
|
||||||
|
if gvc_dep.version().version_compare('>= 13.0.0')
|
||||||
|
clapperapp_c_args += ['-DHAVE_GVC_13']
|
||||||
|
endif
|
||||||
clapperapp_available_functionalities += 'pipeline-preview'
|
clapperapp_available_functionalities += 'pipeline-preview'
|
||||||
elif pp_option.enabled()
|
elif pp_option.enabled()
|
||||||
error('pipeline-preview option was enabled, but required dependencies were not found')
|
error('pipeline-preview option was enabled, but required dependencies were not found')
|
||||||
|
Reference in New Issue
Block a user