aboutsummaryrefslogtreecommitdiffstats
path: root/trace-view.c
diff options
context:
space:
mode:
authorDarren Hart <dvhltc@us.ibm.com>2010-01-05 00:33:01 -0500
committerDarren Hart <dvhltc@us.ibm.com>2010-01-05 01:01:26 -0500
commit5415361dc5ee7da15ac8434dd5853ae45c45e471 (patch)
treecd8d5aac3222c097180e1aeccf339d0dbb2d7ebf /trace-view.c
parentbc166bbe6c6179cbe879473a9d67c20245bbc36e (diff)
trace-view: consolidate the trace-view-store row access
Rather than provide an accessor function for each field of the row record in the trace-view-store, simply return the row record and allow the caller to access the fields directly. Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
Diffstat (limited to 'trace-view.c')
-rw-r--r--trace-view.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/trace-view.c b/trace-view.c
index 3c023e5..899b3b3 100644
--- a/trace-view.c
+++ b/trace-view.c
@@ -271,6 +271,7 @@ void trace_view_make_selection_visible(GtkWidget *treeview)
271void trace_view_update_task_filter(GtkWidget *treeview, struct filter_task *filter) 271void trace_view_update_task_filter(GtkWidget *treeview, struct filter_task *filter)
272{ 272{
273 GtkTreeView *tree = GTK_TREE_VIEW(treeview); 273 GtkTreeView *tree = GTK_TREE_VIEW(treeview);
274 TraceViewRecord *vrec;
274 GtkTreeModel *model; 275 GtkTreeModel *model;
275 guint64 time; 276 guint64 time;
276 gint row; 277 gint row;
@@ -281,8 +282,10 @@ void trace_view_update_task_filter(GtkWidget *treeview, struct filter_task *filt
281 282
282 /* Keep track of the currently selected row */ 283 /* Keep track of the currently selected row */
283 row = trace_view_get_selected_row(treeview); 284 row = trace_view_get_selected_row(treeview);
284 if (row >= 0) 285 if (row >= 0) {
285 time = trace_view_store_get_time_from_row(TRACE_VIEW_STORE(model), row); 286 vrec = trace_view_store_get_row(TRACE_VIEW_STORE(model), row);
287 time = vrec->timestamp;
288 }
286 289
287 g_object_ref(model); 290 g_object_ref(model);
288 gtk_tree_view_set_model(tree, NULL); 291 gtk_tree_view_set_model(tree, NULL);