diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-02-16 11:06:55 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-02-21 20:42:06 -0500 |
commit | 9a0d6533c483179c8e77352844121537856db00e (patch) | |
tree | cbc21e1f3cf3c38d5291739153e3a8e193d6e274 | |
parent | ab89d45e261ec033f03a0dd6b43fcd42193e8a69 (diff) |
trace-view: Use popup for "Not found" display message in search
When a search is not found, use a pop up to show that answer
instead of a printf.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trace-view.c b/trace-view.c index 37b7992..e46c7f9 100644 --- a/trace-view.c +++ b/trace-view.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "trace-cmd.h" | 28 | #include "trace-cmd.h" |
29 | #include "trace-local.h" | 29 | #include "trace-local.h" |
30 | #include "trace-view.h" | 30 | #include "trace-view.h" |
31 | #include "trace-gui.h" | ||
31 | #include "trace-compat.h" | 32 | #include "trace-compat.h" |
32 | #include "cpu.h" | 33 | #include "cpu.h" |
33 | #include "util.h" | 34 | #include "util.h" |
@@ -773,8 +774,7 @@ static void search_tree(gpointer data) | |||
773 | } | 774 | } |
774 | 775 | ||
775 | if (!found) { | 776 | if (!found) { |
776 | printf("NOT FOUND!\n"); | 777 | trace_dialog(NULL, TRACE_GUI_INFO, "Not found"); |
777 | /* show pop up */ | ||
778 | return; | 778 | return; |
779 | } | 779 | } |
780 | 780 | ||