Mailinglist Archive: yast-commit (595 mails)

< Previous Next >
[yast-commit] r53761 - /trunk/sudo/src/dialogs.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Mon, 01 Dec 2008 11:21:10 -0000
  • Message-id: <20081201112111.2204BB16CC@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Mon Dec 1 12:21:10 2008
New Revision: 53761

URL: http://svn.opensuse.org/viewcvs/yast?rev=53761&view=rev
Log:
Reasonable item focus change when moving rules
up/down (#449754)

Modified:
trunk/sudo/src/dialogs.ycp

Modified: trunk/sudo/src/dialogs.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/dialogs.ycp?rev=53761&r1=53760&r2=53761&view=diff
==============================================================================
--- trunk/sudo/src/dialogs.ycp (original)
+++ trunk/sudo/src/dialogs.ycp Mon Dec 1 12:21:10 2008
@@ -112,12 +112,14 @@
if (idx != 0) {
SwapItems( idx, idx - 1);
SwapUIItems( idx, idx - 1 );
+ UI::ChangeWidget(`id("table_user_spec"), `CurrentItem, idx-1);
}
} else if ( ret == "down"){
integer idx = (integer) UI::QueryWidget(`id("table_user_spec"),
`CurrentItem);
if ( idx != (size( Sudo::GetRules())-1) ) {
SwapItems( idx, idx + 1 );
SwapUIItems( idx, idx + 1 );
+ UI::ChangeWidget(`id("table_user_spec"), `CurrentItem, idx+1);
}
}
}

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages