gianiaz wrote:
For note 1, I think is a Timezone related problem.
I've another question, there's a way to retrieve the model of the parent row starting from the clicked element?
My purpose is to update the grandtotal timer for the project in real time or when the stop button is clicked.
Hi Giovanni,
Here's Part 3 that shows the realtime update of total time elpased for the project:
Sample Code 492: How to have a start stop button in GtkTreeView - Part 3 - update parent
Note:
1. Have also added a new format_time() function that doesn't use the date() function. It also works with time greater than 24 hours. Please see if this one works on your machine.
2. To prevent user from clicking the button_blank32.gif, you method works fine. Alternatively, you can check for
| Code: |
if ($model[$path][8]==0) |
. For projects, parent=0, so column 8 will be 0.
Regards,
/kksou