Frans Pop wrote:
On Sunday 21 January 2007 02:20, Attilio Fiandrotti wrote:
No, i'm talking about SELECT only: now there is always a row selected,
so when the user presses <Go> you always end with "xxx" as value for a
given question.
Previously the user was allowed to deselected all rows, hence you could
end with "" (empty string) in the database, and i believe this latter
behaviour is not correct.
Can you give an example of how you could get this old bahavior (real life
example in the installer if possible)? I still cannot place it.
I think i was wrong on one point: even if the old code allowed the user
to unselect all rows togheter, and a default value for a given SELECT
question was missing, the first option in the list was anyway set in the
db as answer when the user pressed <Go>.
Now, with the new code, if a default value for a given SELECT question
is mising, the first option is still automatically selected at display
time, as before.
But now the
gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW
(view)), GTK_SELECTION_BROWSE);
command prevents the user from deselecting the selected row without
selecting another instead.
So, there will always be a selected row for SELECT question.
This has indeed no impact on the underlying db but makes clear to the
user that an option has to be choosed anyway (if he/she ever thought
that unselecting all rows and pressing <Go> was equivalent to pressing
<Back> with one row active, now it should be clear it is not like that)
Attilio
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]