[yast-commit] r63468 - /branches/tmp/jsuchome/snapper/src/dialogs.ycp
Author: jsuchome Date: Thu Feb 24 14:36:44 2011 New Revision: 63468 URL: http://svn.opensuse.org/viewcvs/yast?rev=63468&view=rev Log: no chooser for single snapshots Modified: branches/tmp/jsuchome/snapper/src/dialogs.ycp Modified: branches/tmp/jsuchome/snapper/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/jsuchome/snapper/src/dialogs.ycp?rev=63468&r1=63467&r2=63468&view=diff ============================================================================== --- branches/tmp/jsuchome/snapper/src/dialogs.ycp (original) +++ branches/tmp/jsuchome/snapper/src/dialogs.ycp Thu Feb 24 14:36:44 2011 @@ -325,10 +325,21 @@ // create the term for selected file void set_entry_term () { - if (current_file != "" && files_index[current_file]:$[] != $[]) { - UI::ReplaceWidget (`id (`diff_chooser), `HBox (`HSpacing (0.5), `VBox ( + if (type == `SINGLE) + { + UI::ReplaceWidget (`id (`diff_chooser), `HBox (`HSpacing (0.5), `VBox ( + `VSpacing (0.2), + // label (above richtext) + `Left (`Label (_("Showing the difference between snapshot and current system"))), + `VSpacing () + ), `HSpacing (0.5))); + show_file_modification (current_file, snapshot_num, 0); + } + else + { + UI::ReplaceWidget (`id (`diff_chooser), `HBox (`HSpacing (0.5), `VBox ( `VSpacing (0.2), `RadioButtonGroup (`id(`rd), `Left (`HVSquash (`VBox ( `Left (`RadioButton (`id(`diff_snapshot), `opt (`notify), @@ -342,8 +353,9 @@ _("Show the difference between second snapshot and current system"), false)) )))), `VSpacing () - ), `HSpacing (0.5))); - show_file_modification (current_file, previous_num, snapshot_num); + ), `HSpacing (0.5))); + show_file_modification (current_file, previous_num, snapshot_num); + } } else { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsuchome@svn2.opensuse.org