Author: rpmcruz Date: Thu Oct 11 21:12:04 2007 New Revision: 41396 URL: http://svn.opensuse.org/viewcvs/yast?rev=41396&view=rev Log: * src/YGTable.cc: bug fix #327492: always make one row selected. This isn't documented behavior, and the YCP code is at fault here, but we probably should emulate the other interfaces. Modified: trunk/gtk/ChangeLog trunk/gtk/src/YGTable.cc Modified: trunk/gtk/ChangeLog URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=41396&r1=41395&r2=41396&view=diff ============================================================================== --- trunk/gtk/ChangeLog (original) +++ trunk/gtk/ChangeLog Thu Oct 11 21:12:04 2007 @@ -30,6 +30,10 @@ * src/ygtkratiobox.c: seems like we aren't being completely faithful to yast-core. Made widget base-size with the boss algo from yast-core. + * src/YGTable.cc: bug fix #327492: always make one row selected. This isn't + documented behavior, and the YCP code is at fault here, but we probably + should emulate the other interfaces. + 2007-10-10 Ricardo Cruz <rpmcruz@alunos.dcc.fc.up.pt> * src/YGPackageSelector.cc: fixed bug #330467. Do a full match to Modified: trunk/gtk/src/YGTable.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGTable.cc?rev=41396&r1=41395&r2=41396&view=diff ============================================================================== --- trunk/gtk/src/YGTable.cc (original) +++ trunk/gtk/src/YGTable.cc Thu Oct 11 21:12:04 2007 @@ -305,6 +305,10 @@ addRow (index); for (unsigned int c = 0; c < elements.size(); c++) setItemText (elements[c], index, c); + + // always have one row selected + if (getCurrentRow() == -1) + setCurrentRow (index); } virtual void itemsCleared() -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org