From 3925c2e224943b71f22ad9805fcc394c8ba18f26 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 6 Jul 2010 16:27:09 +0200 Subject: [PATCH] "show graph" action: Print a menu on the left side. Currently only containing of "All graphs". --- src/action_show_graph.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/action_show_graph.c b/src/action_show_graph.c index 5304a25..9b9f5da 100644 --- a/src/action_show_graph.c +++ b/src/action_show_graph.c @@ -83,6 +83,16 @@ static int show_time_selector (__attribute__((unused)) void *user_data) /* {{{ * return (0); } /* }}} int show_time_selector */ +static int left_menu (__attribute__((unused)) void *user_data) /* {{{ */ +{ + printf ("\n\n", + script_name ()); + + return (0); +} /* }}} int left_menu */ + static int show_instance_cb (graph_instance_t *inst, /* {{{ */ void *user_data) { @@ -136,6 +146,7 @@ int action_show_graph (void) /* {{{ */ title[sizeof (title) - 1] = 0; pg_callbacks.top_right = html_print_search_box; + pg_callbacks.middle_left = left_menu; pg_callbacks.middle_center = show_graph; pg_callbacks.middle_right = show_time_selector; -- 2.30.2