STATE_EXIT -> STATE_ZOMBIE
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / processlist.c
CommitLineData
ce0214a6 1/* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 Mathieu Desnoyers
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16 * MA 02111-1307, USA.
17 */
f0d936c0 18
fa2c4dbe 19#include <gtk/gtk.h>
20#include <glib.h>
d66666fe 21
22#include "processlist.h"
23#include "drawitem.h"
fa2c4dbe 24
ca0f8a8e 25#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
26#define g_debug(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format)
27
28
f0d936c0 29/*****************************************************************************
30 * Methods to synchronize process list *
31 *****************************************************************************/
32
f0d936c0 33/* Enumeration of the columns */
34enum
35{
a56a1ba4 36 PROCESS_COLUMN,
37 PID_COLUMN,
38 BIRTH_S_COLUMN,
39 BIRTH_NS_COLUMN,
d0cd7f09 40 TRACE_COLUMN,
a56a1ba4 41 N_COLUMNS
f0d936c0 42};
43
44
a56a1ba4 45gint process_sort_func ( GtkTreeModel *model,
46 GtkTreeIter *it_a,
47 GtkTreeIter *it_b,
48 gpointer user_data)
fa2c4dbe 49{
a56a1ba4 50 GValue a, b;
51
52 memset(&a, 0, sizeof(GValue));
53 memset(&b, 0, sizeof(GValue));
54
55 /* Order by PID */
56 gtk_tree_model_get_value( model,
57 it_a,
58 PID_COLUMN,
59 &a);
60
61 gtk_tree_model_get_value( model,
62 it_b,
63 PID_COLUMN,
64 &b);
65
66 if(G_VALUE_TYPE(&a) == G_TYPE_UINT
67 && G_VALUE_TYPE(&b) == G_TYPE_UINT )
68 {
69 if(g_value_get_uint(&a) > g_value_get_uint(&b))
70 {
71 g_value_unset(&a);
72 g_value_unset(&b);
73 return 1;
74 }
75 if(g_value_get_uint(&a) < g_value_get_uint(&b))
76 {
77 g_value_unset(&a);
78 g_value_unset(&b);
79 return 0;
80 }
81 }
82
83 g_value_unset(&a);
84 g_value_unset(&b);
85
86
87 /* Order by birth second */
88 gtk_tree_model_get_value( model,
89 it_a,
90 BIRTH_S_COLUMN,
91 &a);
92
93 gtk_tree_model_get_value( model,
94 it_b,
95 BIRTH_S_COLUMN,
96 &b);
97
98
99 if(G_VALUE_TYPE(&a) == G_TYPE_ULONG
100 && G_VALUE_TYPE(&b) == G_TYPE_ULONG )
101 {
102 if(g_value_get_ulong(&a) > g_value_get_ulong(&b))
103 {
104 g_value_unset(&a);
105 g_value_unset(&b);
106 return 1;
107 }
108 if(g_value_get_ulong(&a) < g_value_get_ulong(&b))
109 {
110 g_value_unset(&a);
111 g_value_unset(&b);
112 return 0;
113 }
114
115 }
116
117 g_value_unset(&a);
118 g_value_unset(&b);
119
120 /* Order by birth nanosecond */
121 gtk_tree_model_get_value( model,
122 it_a,
123 BIRTH_NS_COLUMN,
124 &a);
125
126 gtk_tree_model_get_value( model,
127 it_b,
128 BIRTH_NS_COLUMN,
129 &b);
130
131
132 if(G_VALUE_TYPE(&a) == G_TYPE_ULONG
133 && G_VALUE_TYPE(&b) == G_TYPE_ULONG )
134 {
135 if(g_value_get_ulong(&a) > g_value_get_ulong(&b))
136 {
137 g_value_unset(&a);
138 g_value_unset(&b);
139 return 1;
140 }
141 // Final condition
142 //if(g_value_get_ulong(&a) < g_value_get_ulong(&b))
143 //{
144 // g_value_unset(&a);
145 // g_value_unset(&b);
146 // return 0;
147 //}
148
149 }
150
151 g_value_unset(&a);
152 g_value_unset(&b);
153
d0cd7f09 154 /* Order by trace_num */
155 gtk_tree_model_get_value( model,
156 it_a,
157 TRACE_COLUMN,
158 &a);
159
160 gtk_tree_model_get_value( model,
161 it_b,
162 TRACE_COLUMN,
163 &b);
164
165 if(G_VALUE_TYPE(&a) == G_TYPE_ULONG
166 && G_VALUE_TYPE(&b) == G_TYPE_ULONG )
167 {
168 if(g_value_get_ulong(&a) > g_value_get_ulong(&b))
169 {
170 g_value_unset(&a);
171 g_value_unset(&b);
172 return 1;
173 }
174 if(g_value_get_ulong(&a) < g_value_get_ulong(&b))
175 {
176 g_value_unset(&a);
177 g_value_unset(&b);
178 return 0;
179 }
180
181 }
182
183
184
a56a1ba4 185 return 0;
fa2c4dbe 186
187}
188
fa2c4dbe 189guint hash_fct(gconstpointer key)
190{
a56a1ba4 191 return ((ProcessInfo*)key)->pid;
fa2c4dbe 192}
193
194gboolean equ_fct(gconstpointer a, gconstpointer b)
195{
a56a1ba4 196 if(((ProcessInfo*)a)->pid != ((ProcessInfo*)b)->pid)
197 return 0;
198// g_critical("compare %u and %u",((ProcessInfo*)a)->pid,((ProcessInfo*)b)->pid);
199 if(((ProcessInfo*)a)->birth.tv_sec != ((ProcessInfo*)b)->birth.tv_sec)
200 return 0;
201// g_critical("compare %u and %u",((ProcessInfo*)a)->birth.tv_sec,((ProcessInfo*)b)->birth.tv_sec);
202
203 if(((ProcessInfo*)a)->birth.tv_nsec != ((ProcessInfo*)b)->birth.tv_nsec)
204 return 0;
205// g_critical("compare %u and %u",((ProcessInfo*)a)->birth.tv_nsec,((ProcessInfo*)b)->birth.tv_nsec);
206
d0cd7f09 207 if(((ProcessInfo*)a)->trace_num != ((ProcessInfo*)b)->trace_num)
208 return 0;
209
a56a1ba4 210 return 1;
fa2c4dbe 211}
212
4c69e0cc 213void destroy_hash_key(gpointer key);
fa2c4dbe 214
4c69e0cc 215void destroy_hash_data(gpointer data);
fa2c4dbe 216
217
218
219
4c69e0cc 220ProcessList *processlist_construct(void)
f0d936c0 221{
a56a1ba4 222 GtkTreeViewColumn *column;
223 GtkCellRenderer *renderer;
224
ba90bc77 225 ProcessList* process_list = g_new(ProcessList,1);
a56a1ba4 226
ba90bc77 227 process_list->number_of_process = 0;
a56a1ba4 228
229 /* Create the Process list */
f5d980bf 230 process_list->list_store = gtk_list_store_new ( N_COLUMNS,
a56a1ba4 231 G_TYPE_STRING,
232 G_TYPE_UINT,
233 G_TYPE_ULONG,
d0cd7f09 234 G_TYPE_ULONG,
a56a1ba4 235 G_TYPE_ULONG);
236
237
f5d980bf 238 process_list->process_list_widget =
a56a1ba4 239 gtk_tree_view_new_with_model
f5d980bf 240 (GTK_TREE_MODEL (process_list->list_store));
f5d980bf 241 g_object_unref (G_OBJECT (process_list->list_store));
a56a1ba4 242
243 gtk_tree_sortable_set_sort_func(
f5d980bf 244 GTK_TREE_SORTABLE(process_list->list_store),
a56a1ba4 245 PID_COLUMN,
246 process_sort_func,
247 NULL,
248 NULL);
249
250 gtk_tree_sortable_set_sort_column_id(
f5d980bf 251 GTK_TREE_SORTABLE(process_list->list_store),
a56a1ba4 252 PID_COLUMN,
253 GTK_SORT_ASCENDING);
254
14963be0 255 process_list->process_hash = g_hash_table_new_full(
a56a1ba4 256 hash_fct, equ_fct,
257 destroy_hash_key, destroy_hash_data
258 );
259
260
261 gtk_tree_view_set_headers_visible(
3cb8b205 262 GTK_TREE_VIEW(process_list->process_list_widget), TRUE);
a56a1ba4 263
264 /* Create a column, associating the "text" attribute of the
265 * cell_renderer to the first column of the model */
266 /* Columns alignment : 0.0 : Left 0.5 : Center 1.0 : Right */
267 renderer = gtk_cell_renderer_text_new ();
268 column = gtk_tree_view_column_new_with_attributes ( "Process",
269 renderer,
270 "text",
271 PROCESS_COLUMN,
272 NULL);
273 gtk_tree_view_column_set_alignment (column, 0.0);
274 gtk_tree_view_column_set_fixed_width (column, 45);
275 gtk_tree_view_append_column (
f5d980bf 276 GTK_TREE_VIEW (process_list->process_list_widget), column);
b9a010a2 277
278 process_list->button = column->button;
279
a56a1ba4 280 column = gtk_tree_view_column_new_with_attributes ( "PID",
281 renderer,
282 "text",
283 PID_COLUMN,
284 NULL);
285 gtk_tree_view_append_column (
f5d980bf 286 GTK_TREE_VIEW (process_list->process_list_widget), column);
a56a1ba4 287
288
289 column = gtk_tree_view_column_new_with_attributes ( "Birth sec",
290 renderer,
291 "text",
292 BIRTH_S_COLUMN,
293 NULL);
294 gtk_tree_view_append_column (
f5d980bf 295 GTK_TREE_VIEW (process_list->process_list_widget), column);
a56a1ba4 296
297 //gtk_tree_view_column_set_visible(column, 0);
298 //
299 column = gtk_tree_view_column_new_with_attributes ( "Birth nsec",
300 renderer,
301 "text",
302 BIRTH_NS_COLUMN,
303 NULL);
304 gtk_tree_view_append_column (
f5d980bf 305 GTK_TREE_VIEW (process_list->process_list_widget), column);
a56a1ba4 306
d0cd7f09 307 column = gtk_tree_view_column_new_with_attributes ( "TRACE",
308 renderer,
309 "text",
310 TRACE_COLUMN,
311 NULL);
312 gtk_tree_view_append_column (
313 GTK_TREE_VIEW (process_list->process_list_widget), column);
314
315
a56a1ba4 316 //gtk_tree_view_column_set_visible(column, 0);
317
318 g_object_set_data_full(
f5d980bf 319 G_OBJECT(process_list->process_list_widget),
ba90bc77 320 "process_list_Data",
321 process_list,
a56a1ba4 322 (GDestroyNotify)processlist_destroy);
323
ba90bc77 324 return process_list;
f0d936c0 325}
b9a010a2 326
ba90bc77 327void processlist_destroy(ProcessList *process_list)
f0d936c0 328{
b9a010a2 329 g_debug("processlist_destroy %p", process_list);
14963be0 330 g_hash_table_destroy(process_list->process_hash);
331 process_list->process_hash = NULL;
f0d936c0 332
ba90bc77 333 g_free(process_list);
b9a010a2 334 g_debug("processlist_destroy end");
335}
336
337static gboolean remove_hash_item(ProcessInfo *process_info,
338 HashedProcessData *hashed_process_data,
339 ProcessList *process_list)
340{
341 GtkTreePath *tree_path;
342 GtkTreeIter iter;
343
344 tree_path = gtk_tree_row_reference_get_path(
345 hashed_process_data->row_ref);
346
347 gtk_tree_model_get_iter (
348 GTK_TREE_MODEL(process_list->list_store),
349 &iter, tree_path);
350
351 gtk_tree_path_free(tree_path);
352
353 gtk_list_store_remove (process_list->list_store, &iter);
354
b9a010a2 355 return TRUE; /* remove the element from the hash table */
f0d936c0 356}
357
b9a010a2 358void processlist_clear(ProcessList *process_list)
359{
360 g_info("processlist_clear %p", process_list);
361
362 g_hash_table_foreach_remove(process_list->process_hash,
363 (GHRFunc)remove_hash_item,
364 (gpointer)process_list);
365 process_list->number_of_process = 0;
366}
367
368
ba90bc77 369GtkWidget *processlist_get_widget(ProcessList *process_list)
f0d936c0 370{
f5d980bf 371 return process_list->process_list_widget;
f0d936c0 372}
373
374
375
f5d980bf 376gint get_cell_height(GtkTreeView *tree_view)
f0d936c0 377{
a56a1ba4 378 gint height;
f5d980bf 379 GtkTreeViewColumn *Column = gtk_tree_view_get_column(tree_view, 0);
a56a1ba4 380 //GList *Render_List = gtk_tree_view_column_get_cell_renderers(Column);
381 //GtkCellRenderer *Renderer = g_list_first(Render_List)->data;
382
383 //g_list_free(Render_List);
384 gtk_tree_view_column_cell_get_size(Column, NULL, NULL, NULL, NULL, &height);
385 //g_critical("cell 0 height : %u",height);
386
387 return height;
f0d936c0 388}
389
4c69e0cc 390void destroy_hash_key(gpointer key)
f0d936c0 391{
a56a1ba4 392 g_free(key);
fa2c4dbe 393}
394
4c69e0cc 395void destroy_hash_data(gpointer data)
fa2c4dbe 396{
a56a1ba4 397 g_free(data);
fa2c4dbe 398}
399
ba90bc77 400int processlist_add( ProcessList *process_list,
a56a1ba4 401 guint pid,
402 LttTime *birth,
d0cd7f09 403 guint trace_num,
51705146 404 const gchar *name,
a56a1ba4 405 guint *height,
f5d980bf 406 HashedProcessData **pm_hashed_process_data)
fa2c4dbe 407{
a56a1ba4 408 GtkTreeIter iter ;
409 ProcessInfo *Process_Info = g_new(ProcessInfo, 1);
14963be0 410 HashedProcessData *hashed_process_data = g_new(HashedProcessData, 1);
f5d980bf 411 *pm_hashed_process_data = hashed_process_data;
a56a1ba4 412
413 Process_Info->pid = pid;
414 Process_Info->birth = *birth;
d0cd7f09 415 Process_Info->trace_num = trace_num;
b9a010a2 416
417 /* When we create it from before state update, we are sure that the
418 * last event occured before the beginning of the global area.
419 *
420 * If it is created after state update, this value (0) will be
421 * overriden by the new state before anything is drawn.
422 */
423 hashed_process_data->x = 0;
a56a1ba4 424
b9a010a2 425#if 0
14963be0 426 hashed_process_data->draw_context = g_new(DrawContext, 1);
427 hashed_process_data->draw_context->drawable = NULL;
428 hashed_process_data->draw_context->gc = NULL;
429 hashed_process_data->draw_context->pango_layout = NULL;
430 hashed_process_data->draw_context->current = g_new(DrawInfo,1);
431 hashed_process_data->draw_context->current->over = g_new(ItemInfo,1);
432 hashed_process_data->draw_context->current->over->x = -1;
433 hashed_process_data->draw_context->current->over->y = -1;
434 hashed_process_data->draw_context->current->middle = g_new(ItemInfo,1);
435 hashed_process_data->draw_context->current->middle->x = -1;
436 hashed_process_data->draw_context->current->middle->y = -1;
437 hashed_process_data->draw_context->current->under = g_new(ItemInfo,1);
438 hashed_process_data->draw_context->current->under->x = -1;
439 hashed_process_data->draw_context->current->under->y = -1;
440 hashed_process_data->draw_context->current->modify_over = g_new(ItemInfo,1);
441 hashed_process_data->draw_context->current->modify_over->x = -1;
442 hashed_process_data->draw_context->current->modify_over->y = -1;
443 hashed_process_data->draw_context->current->modify_middle = g_new(ItemInfo,1);
444 hashed_process_data->draw_context->current->modify_middle->x = -1;
445 hashed_process_data->draw_context->current->modify_middle->y = -1;
446 hashed_process_data->draw_context->current->modify_under = g_new(ItemInfo,1);
447 hashed_process_data->draw_context->current->modify_under->x = -1;
448 hashed_process_data->draw_context->current->modify_under->y = -1;
449 hashed_process_data->draw_context->current->status = LTTV_STATE_UNNAMED;
450 hashed_process_data->draw_context->previous = g_new(DrawInfo,1);
451 hashed_process_data->draw_context->previous->over = g_new(ItemInfo,1);
452 hashed_process_data->draw_context->previous->over->x = -1;
453 hashed_process_data->draw_context->previous->over->y = -1;
454 hashed_process_data->draw_context->previous->middle = g_new(ItemInfo,1);
455 hashed_process_data->draw_context->previous->middle->x = -1;
456 hashed_process_data->draw_context->previous->middle->y = -1;
457 hashed_process_data->draw_context->previous->under = g_new(ItemInfo,1);
458 hashed_process_data->draw_context->previous->under->x = -1;
459 hashed_process_data->draw_context->previous->under->y = -1;
460 hashed_process_data->draw_context->previous->modify_over = g_new(ItemInfo,1);
461 hashed_process_data->draw_context->previous->modify_over->x = -1;
462 hashed_process_data->draw_context->previous->modify_over->y = -1;
463 hashed_process_data->draw_context->previous->modify_middle = g_new(ItemInfo,1);
464 hashed_process_data->draw_context->previous->modify_middle->x = -1;
465 hashed_process_data->draw_context->previous->modify_middle->y = -1;
466 hashed_process_data->draw_context->previous->modify_under = g_new(ItemInfo,1);
467 hashed_process_data->draw_context->previous->modify_under->x = -1;
468 hashed_process_data->draw_context->previous->modify_under->y = -1;
469 hashed_process_data->draw_context->previous->status = LTTV_STATE_UNNAMED;
b9a010a2 470#endif //0
471
a56a1ba4 472 /* Add a new row to the model */
f5d980bf 473 gtk_list_store_append ( process_list->list_store, &iter);
a56a1ba4 474 //g_critical ( "iter before : %s", gtk_tree_path_to_string (
475 // gtk_tree_model_get_path (
f5d980bf 476 // GTK_TREE_MODEL(process_list->list_store),
a56a1ba4 477 // &iter)));
f5d980bf 478 gtk_list_store_set ( process_list->list_store, &iter,
a56a1ba4 479 PROCESS_COLUMN, name,
480 PID_COLUMN, pid,
481 BIRTH_S_COLUMN, birth->tv_sec,
482 BIRTH_NS_COLUMN, birth->tv_nsec,
d0cd7f09 483 TRACE_COLUMN, trace_num,
a56a1ba4 484 -1);
f5d980bf 485 hashed_process_data->row_ref = gtk_tree_row_reference_new (
486 GTK_TREE_MODEL(process_list->list_store),
a56a1ba4 487 gtk_tree_model_get_path(
f5d980bf 488 GTK_TREE_MODEL(process_list->list_store),
a56a1ba4 489 &iter));
14963be0 490 g_hash_table_insert( process_list->process_hash,
a56a1ba4 491 (gpointer)Process_Info,
14963be0 492 (gpointer)hashed_process_data);
a56a1ba4 493
494 //g_critical ( "iter after : %s", gtk_tree_path_to_string (
495 // gtk_tree_model_get_path (
f5d980bf 496 // GTK_TREE_MODEL(process_list->list_store),
a56a1ba4 497 // &iter)));
ba90bc77 498 process_list->number_of_process++;
a56a1ba4 499
f5d980bf 500 *height = get_cell_height(GTK_TREE_VIEW(process_list->process_list_widget))
ba90bc77 501 * process_list->number_of_process ;
a56a1ba4 502
503
504 return 0;
505
f0d936c0 506}
507
ba90bc77 508int processlist_remove( ProcessList *process_list,
a56a1ba4 509 guint pid,
d0cd7f09 510 LttTime *birth,
511 guint trace_num)
f0d936c0 512{
a56a1ba4 513 ProcessInfo Process_Info;
514 gint *path_indices;
14963be0 515 HashedProcessData *hashed_process_data;
a56a1ba4 516 GtkTreeIter iter;
517
518 Process_Info.pid = pid;
519 Process_Info.birth = *birth;
d0cd7f09 520 Process_Info.trace_num = trace_num;
a56a1ba4 521
522
14963be0 523 if(hashed_process_data =
a56a1ba4 524 (HashedProcessData*)g_hash_table_lookup(
14963be0 525 process_list->process_hash,
a56a1ba4 526 &Process_Info))
527 {
51705146 528 GtkTreePath *tree_path;
529
530 tree_path = gtk_tree_row_reference_get_path(
531 hashed_process_data->row_ref);
532
a56a1ba4 533 gtk_tree_model_get_iter (
f5d980bf 534 GTK_TREE_MODEL(process_list->list_store),
51705146 535 &iter, tree_path);
536
537 gtk_tree_path_free(tree_path);
a56a1ba4 538
f5d980bf 539 gtk_list_store_remove (process_list->list_store, &iter);
e800cf84 540
14963be0 541 g_hash_table_remove(process_list->process_hash,
a56a1ba4 542 &Process_Info);
543
ba90bc77 544 process_list->number_of_process--;
a56a1ba4 545
546 return 0;
547 } else {
548 return 1;
549 }
fa2c4dbe 550}
551
552
ba90bc77 553guint processlist_get_height(ProcessList *process_list)
fa2c4dbe 554{
f5d980bf 555 return get_cell_height(GTK_TREE_VIEW(process_list->process_list_widget))
ba90bc77 556 * process_list->number_of_process ;
f0d936c0 557}
fa2c4dbe 558
559
ba90bc77 560gint processlist_get_process_pixels( ProcessList *process_list,
d0cd7f09 561 guint pid, LttTime *birth, guint trace_num,
a56a1ba4 562 guint *y,
563 guint *height,
f5d980bf 564 HashedProcessData **pm_hashed_process_data)
fa2c4dbe 565{
a56a1ba4 566 ProcessInfo Process_Info;
567 gint *path_indices;
568 GtkTreePath *tree_path;
14963be0 569 HashedProcessData *hashed_process_data = NULL;
a56a1ba4 570
571 Process_Info.pid = pid;
572 Process_Info.birth = *birth;
d0cd7f09 573 Process_Info.trace_num = trace_num;
a56a1ba4 574
14963be0 575 if(hashed_process_data =
a56a1ba4 576 (HashedProcessData*)g_hash_table_lookup(
14963be0 577 process_list->process_hash,
a56a1ba4 578 &Process_Info))
579 {
580 tree_path = gtk_tree_row_reference_get_path(
f5d980bf 581 hashed_process_data->row_ref);
a56a1ba4 582 path_indices = gtk_tree_path_get_indices (tree_path);
583
584 *height = get_cell_height(
f5d980bf 585 GTK_TREE_VIEW(process_list->process_list_widget));
a56a1ba4 586 *y = *height * path_indices[0];
f5d980bf 587 *pm_hashed_process_data = hashed_process_data;
51705146 588 gtk_tree_path_free(tree_path);
589
a56a1ba4 590 return 0;
591 } else {
f5d980bf 592 *pm_hashed_process_data = hashed_process_data;
a56a1ba4 593 return 1;
594 }
fa2c4dbe 595
fa2c4dbe 596}
8b90e648 597
598
ba90bc77 599gint processlist_get_pixels_from_data( ProcessList *process_list,
a56a1ba4 600 ProcessInfo *process_info,
14963be0 601 HashedProcessData *hashed_process_data,
a56a1ba4 602 guint *y,
603 guint *height)
8b90e648 604{
a56a1ba4 605 gint *path_indices;
606 GtkTreePath *tree_path;
8b90e648 607
a56a1ba4 608 tree_path = gtk_tree_row_reference_get_path(
f5d980bf 609 hashed_process_data->row_ref);
a56a1ba4 610 path_indices = gtk_tree_path_get_indices (tree_path);
8b90e648 611
a56a1ba4 612 *height = get_cell_height(
f5d980bf 613 GTK_TREE_VIEW(process_list->process_list_widget));
a56a1ba4 614 *y = *height * path_indices[0];
51705146 615 gtk_tree_path_free(tree_path);
8b90e648 616
a56a1ba4 617 return 0;
8b90e648 618
619}
This page took 0.058193 seconds and 4 git commands to generate.