Mailinglist Archive: yast-commit (183 mails)
| < Previous | Next > |
[yast-commit] r62527 - /trunk/gtk/tests/FileDialog.ycp
- From: rpmcruz@xxxxxxxxxxxxxxxxx
- Date: Sun, 03 Oct 2010 15:00:20 -0000
- Message-id: <20101003150021.0D7B93237F@xxxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sun Oct 3 17:00:20 2010
New Revision: 62527
URL: http://svn.opensuse.org/viewcvs/yast?rev=62527&view=rev
Log:
Fixed test case.
Modified:
trunk/gtk/tests/FileDialog.ycp
Modified: trunk/gtk/tests/FileDialog.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/tests/FileDialog.ycp?rev=62527&r1=62526&r2=62527&view=diff
==============================================================================
--- trunk/gtk/tests/FileDialog.ycp (original)
+++ trunk/gtk/tests/FileDialog.ycp Sun Oct 3 17:00:20 2010
@@ -50,13 +50,14 @@
UI::CloseDialog();
if (action == `open_file)
- ret_path = UI::AskForSaveFileName (start_path,
filter_str, "Choose a File");
+ ret_path = UI::AskForExistingFile (start_path,
filter_str, "Choose a File");
else if (action == `save_file)
ret_path = UI::AskForSaveFileName (start_path,
filter_str, "Choose a File");
else if (action == `select_folder)
- ret_path = UI::AskForSaveFileName (start_path,
filter_str, "Choose a Folder");
+ ret_path = UI::AskForExistingDirectory (start_path,
"Choose a Folder");
- if (ret_path != nil)
- show_selected (ret_path);
+ if (ret_path == nil)
+ ret_path = "(none)";
+ show_selected (ret_path);
}
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
Date: Sun Oct 3 17:00:20 2010
New Revision: 62527
URL: http://svn.opensuse.org/viewcvs/yast?rev=62527&view=rev
Log:
Fixed test case.
Modified:
trunk/gtk/tests/FileDialog.ycp
Modified: trunk/gtk/tests/FileDialog.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/tests/FileDialog.ycp?rev=62527&r1=62526&r2=62527&view=diff
==============================================================================
--- trunk/gtk/tests/FileDialog.ycp (original)
+++ trunk/gtk/tests/FileDialog.ycp Sun Oct 3 17:00:20 2010
@@ -50,13 +50,14 @@
UI::CloseDialog();
if (action == `open_file)
- ret_path = UI::AskForSaveFileName (start_path,
filter_str, "Choose a File");
+ ret_path = UI::AskForExistingFile (start_path,
filter_str, "Choose a File");
else if (action == `save_file)
ret_path = UI::AskForSaveFileName (start_path,
filter_str, "Choose a File");
else if (action == `select_folder)
- ret_path = UI::AskForSaveFileName (start_path,
filter_str, "Choose a Folder");
+ ret_path = UI::AskForExistingDirectory (start_path,
"Choose a Folder");
- if (ret_path != nil)
- show_selected (ret_path);
+ if (ret_path == nil)
+ ret_path = "(none)";
+ show_selected (ret_path);
}
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |