diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-02-21 20:39:21 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-02-21 20:42:09 -0500 |
commit | f232afea509e1f09385343105c941600a3c76a83 (patch) | |
tree | 060051945e89a3fca3a7191629e418dd16c1bf20 | |
parent | ced46417ac738077b949aca89edc7b9cbe59442e (diff) |
trace-graph: Change cursor when updating graph
When updating the graph, change the cursor to the wait cursor.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-graph.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/trace-graph.c b/trace-graph.c index 65af0db..eb50c98 100644 --- a/trace-graph.c +++ b/trace-graph.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include "trace-graph.h" | 31 | #include "trace-graph.h" |
32 | #include "trace-hash.h" | 32 | #include "trace-hash.h" |
33 | #include "trace-filter.h" | 33 | #include "trace-filter.h" |
34 | #include "trace-gui.h" | ||
34 | 35 | ||
35 | #include "util.h" | 36 | #include "util.h" |
36 | 37 | ||
@@ -1840,6 +1841,8 @@ static void draw_plots(struct graph_info *ginfo, gint new_width) | |||
1840 | tracecmd_set_all_cpus_to_timestamp(ginfo->handle, | 1841 | tracecmd_set_all_cpus_to_timestamp(ginfo->handle, |
1841 | ginfo->view_start_time); | 1842 | ginfo->view_start_time); |
1842 | 1843 | ||
1844 | trace_set_cursor(GDK_WATCH); | ||
1845 | |||
1843 | /* Shortcut if we don't have any task plots */ | 1846 | /* Shortcut if we don't have any task plots */ |
1844 | if (!ginfo->nr_task_hash && !ginfo->all_recs) { | 1847 | if (!ginfo->nr_task_hash && !ginfo->all_recs) { |
1845 | for (cpu = 0; cpu < ginfo->cpus; cpu++) { | 1848 | for (cpu = 0; cpu < ginfo->cpus; cpu++) { |
@@ -1898,6 +1901,7 @@ out: | |||
1898 | gdk_gc_unref(plot->gc); | 1901 | gdk_gc_unref(plot->gc); |
1899 | plot->gc = NULL; | 1902 | plot->gc = NULL; |
1900 | } | 1903 | } |
1904 | trace_put_cursor(); | ||
1901 | } | 1905 | } |
1902 | 1906 | ||
1903 | 1907 | ||