Commit ed70c609 authored by Namhyung Kim's avatar Namhyung Kim Committed by Arnaldo Carvalho de Melo

perf ui/gtk: Use helpline API in browser

As we now have a helpline implementation, use it for displaying help
messages.
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Acked-by: default avatarPekka Enberg <penberg@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1345104894-14205-4-git-send-email-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 4bb1646a
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include "../evsel.h" #include "../evsel.h"
#include "../sort.h" #include "../sort.h"
#include "../hist.h" #include "../hist.h"
#include "../helpline.h"
#include "gtk.h" #include "gtk.h"
#include <signal.h> #include <signal.h>
...@@ -166,7 +167,7 @@ static GtkWidget *perf_gtk__setup_statusbar(void) ...@@ -166,7 +167,7 @@ static GtkWidget *perf_gtk__setup_statusbar(void)
} }
int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist, int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist,
const char *help __used, const char *help,
void (*timer) (void *arg)__used, void (*timer) (void *arg)__used,
void *arg __used, int delay_secs __used) void *arg __used, int delay_secs __used)
{ {
...@@ -233,6 +234,8 @@ int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist, ...@@ -233,6 +234,8 @@ int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist,
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER); gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
ui_helpline__push(help);
gtk_main(); gtk_main();
perf_gtk__deactivate_context(&pgctx); perf_gtk__deactivate_context(&pgctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment