X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Faction_list_graphs.c;h=ac37cc025a519c2eb8d7ba52451e0b10f6b44b0a;hp=db458990d012c53dec0833827b6157f2c326f256;hb=dada106cc5e266710e0238046245349e595201a3;hpb=55ef95c2ada9f31247559f6464ed6216a96699fb diff --git a/src/action_list_graphs.c b/src/action_list_graphs.c index db45899..ac37cc0 100644 --- a/src/action_list_graphs.c +++ b/src/action_list_graphs.c @@ -38,9 +38,10 @@ static int left_menu (__attribute__((unused)) void *user_data) /* {{{ */ { printf ("\n\n", - script_name ()); + script_name (), script_name ()); return (0); } /* }}} int left_menu */ @@ -75,17 +76,30 @@ static int print_one_graph (graph_config_t *cfg, /* {{{ */ static int print_all_graphs (__attribute__((unused)) void *user_data) /* {{{ */ { + const char *dynamic; + _Bool include_dynamic = 0; + + dynamic = param ("dynamic"); + if ((dynamic != NULL) + && (strcmp ("true", dynamic) == 0)) + include_dynamic = 1; + printf (" \n"); + if (!include_dynamic) + { + printf ("
" + "List dynamic graphs, too." + "
\n", script_name ()); + } + return (0); } /* }}} int print_all_graphs */ int action_list_graphs (void) /* {{{ */ { - gl_update (); - page_callbacks_t pg_callbacks = PAGE_CALLBACKS_INIT; char title[512];