aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/gtk/browser.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2012-04-30 00:55:07 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-05-02 15:17:28 -0400
commit28e62b90d95a4ed8ae2ba93879003665051581a6 (patch)
treec81883ee4980808d9744e482a2d8ca306dc8883c /tools/perf/ui/gtk/browser.c
parent7706f966323f32f3ea13121b5918851432876ae5 (diff)
perf ui gtk: Rename functions for consistency
We use double underscore characters to distinguish its subsystem and actual function name. Signed-off-by: Namhyung Kim <namhyung.kim@lge.com> Acked-by: Pekka Enberg <penberg@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Namhyung Kim <namhyung@gmail.com> 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/1335761711-31403-4-git-send-email-namhyung.kim@lge.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/gtk/browser.c')
-rw-r--r--tools/perf/ui/gtk/browser.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/perf/ui/gtk/browser.c b/tools/perf/ui/gtk/browser.c
index a1a83de3f459..5eafd9b3b783 100644
--- a/tools/perf/ui/gtk/browser.c
+++ b/tools/perf/ui/gtk/browser.c
@@ -9,23 +9,23 @@
9 9
10#define MAX_COLUMNS 32 10#define MAX_COLUMNS 32
11 11
12void perf_gtk_setup_browser(bool fallback_to_pager __used) 12void perf_gtk__setup_browser(bool fallback_to_pager __used)
13{ 13{
14 gtk_init(NULL, NULL); 14 gtk_init(NULL, NULL);
15} 15}
16 16
17void perf_gtk_exit_browser(bool wait_for_ok __used) 17void perf_gtk__exit_browser(bool wait_for_ok __used)
18{ 18{
19 gtk_main_quit(); 19 gtk_main_quit();
20} 20}
21 21
22static void perf_gtk_signal(int sig) 22static void perf_gtk__signal(int sig)
23{ 23{
24 psignal(sig, "perf"); 24 psignal(sig, "perf");
25 gtk_main_quit(); 25 gtk_main_quit();
26} 26}
27 27
28static void perf_gtk_resize_window(GtkWidget *window) 28static void perf_gtk__resize_window(GtkWidget *window)
29{ 29{
30 GdkRectangle rect; 30 GdkRectangle rect;
31 GdkScreen *screen; 31 GdkScreen *screen;
@@ -45,7 +45,7 @@ static void perf_gtk_resize_window(GtkWidget *window)
45 gtk_window_resize(GTK_WINDOW(window), width, height); 45 gtk_window_resize(GTK_WINDOW(window), width, height);
46} 46}
47 47
48static void perf_gtk_show_hists(GtkWidget *window, struct hists *hists) 48static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists)
49{ 49{
50 GType col_types[MAX_COLUMNS]; 50 GType col_types[MAX_COLUMNS];
51 GtkCellRenderer *renderer; 51 GtkCellRenderer *renderer;
@@ -141,11 +141,11 @@ int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist,
141 GtkWidget *notebook; 141 GtkWidget *notebook;
142 GtkWidget *window; 142 GtkWidget *window;
143 143
144 signal(SIGSEGV, perf_gtk_signal); 144 signal(SIGSEGV, perf_gtk__signal);
145 signal(SIGFPE, perf_gtk_signal); 145 signal(SIGFPE, perf_gtk__signal);
146 signal(SIGINT, perf_gtk_signal); 146 signal(SIGINT, perf_gtk__signal);
147 signal(SIGQUIT, perf_gtk_signal); 147 signal(SIGQUIT, perf_gtk__signal);
148 signal(SIGTERM, perf_gtk_signal); 148 signal(SIGTERM, perf_gtk__signal);
149 149
150 window = gtk_window_new(GTK_WINDOW_TOPLEVEL); 150 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
151 151
@@ -167,7 +167,7 @@ int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist,
167 GTK_POLICY_AUTOMATIC, 167 GTK_POLICY_AUTOMATIC,
168 GTK_POLICY_AUTOMATIC); 168 GTK_POLICY_AUTOMATIC);
169 169
170 perf_gtk_show_hists(scrolled_window, hists); 170 perf_gtk__show_hists(scrolled_window, hists);
171 171
172 tab_label = gtk_label_new(evname); 172 tab_label = gtk_label_new(evname);
173 173
@@ -178,7 +178,7 @@ int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist,
178 178
179 gtk_widget_show_all(window); 179 gtk_widget_show_all(window);
180 180
181 perf_gtk_resize_window(window); 181 perf_gtk__resize_window(window);
182 182
183 gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER); 183 gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
184 184