summaryrefslogtreecommitdiff
path: root/src/callgraph.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-04-23 17:37:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-04-23 17:37:21 +0100
commita6dd2d3a068f53aa4de1a240ad35314570246dc1 (patch)
treee78c5b8b6fc92ce3a2a7df164ee14d42848169b3 /src/callgraph.c
parent7e18e60824115036600c0f23700da72863edf7f7 (diff)
Tons of UI tweaks. Oops.
Diffstat (limited to 'src/callgraph.c')
-rw-r--r--src/callgraph.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/callgraph.c b/src/callgraph.c
index ac8eac5..97d1970 100644
--- a/src/callgraph.c
+++ b/src/callgraph.c
@@ -327,7 +327,7 @@ call_graph_query_tooltip (GtkWidget *widget,
do {
if (child->frame != child->parent->frame) {
- if (++n == 8)
+ if (++n == NUM_CALLERS)
break;
if (frame->frame->function == main_fn)
break;
@@ -352,7 +352,7 @@ call_graph_query_tooltip (GtkWidget *widget,
g_string_append (string, frame->frame->function_srcloc);
if (frame->frame->function == main_fn)
break;
- if (++n == 8)
+ if (++n == NUM_CALLERS)
break;
}
if (frame->allocator != NULL)
@@ -363,7 +363,7 @@ call_graph_query_tooltip (GtkWidget *widget,
} else
string = g_string_new ("Called from:");
- if (frame->frame->function != main_fn && n < 8) {
+ if (frame->frame->function != main_fn && n < NUM_CALLERS) {
const gchar *last_frame = frame->frame->function_srcloc;
const Allocator *A = frame->allocator;
guint m = frame->depth + 1;
@@ -376,7 +376,7 @@ call_graph_query_tooltip (GtkWidget *widget,
g_string_append (string, str);
if (A->frames[m]->function == main_fn)
break;
- if (++n == 8)
+ if (++n == NUM_CALLERS)
break;
last_frame = str;
}