Re: obvious error?
- From: Daniel Elstner <daniel kitta googlemail com>
- To: Andy Gilman <amgilman myfairpoint net>
- Cc: gtkmm-list gnome org
- Subject: Re: obvious error?
- Date: Tue, 19 Jan 2010 21:33:36 +0200
Hi,
Am Montag, den 18.01.2010, 21:16 -0500 schrieb Andy Gilman:
> I am trying to write a simple(!) program for balancing my checkbook. I
> have established a treemodel (listview) which works in terms of listing
> the checks. But I would also like to be able to click on any row and
> have a check's reconciled status indicated.
>
> I believe I have copied the code from the tutorial, but it does not
> work. I believe that the iter is not receiving a value.
>From what I can see, the code will set a cell in the first selected row
of the tree model to the string "done" if any row was selected on entry.
It then connects a signal handler to have on_button_press() called the
next time the selection changes. That's a bit odd.
> As may be obvious, "treeview" is the name of the view. The signal
> handler sets the text on a label. It will do this if it is not included
> in the conditional routine (of if the initial condition is set to (!
> iter), but otherwise not.
If you mean that on_button_press() sets the text on a label, it will do
so only on the second selection change. On the third selection, it will
be called twice though, and three times on the fourth selection, and so
on.
> I suspect strongly that I am missing something obvious, but after
> several days of fruitless effort, I still cannot see what it is.
If this is indeed copied from the tutorial, it needs to be fixed. Where
exactly did you find it?
--Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]