[latexila] CleanBuildFiles: info msg when no file to clean up
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] CleanBuildFiles: info msg when no file to clean up
- Date: Wed, 22 Jun 2011 20:18:07 +0000 (UTC)
commit 2bb59a42e96ea640ed5cc91faeceeff8fb76feb6
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Wed Jun 22 21:27:35 2011 +0200
CleanBuildFiles: info msg when no file to clean up
This info message is displayed only if the option for demanding
confirmation before deleting files is enabled, which is the case by
default.
src/clean_build_files.vala | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/clean_build_files.vala b/src/clean_build_files.vala
index e989071..877dc51 100644
--- a/src/clean_build_files.vala
+++ b/src/clean_build_files.vala
@@ -73,7 +73,11 @@ public class CleanBuildFiles : GLib.Object
}
if (files_to_delete.size == 0)
+ {
+ if (! _no_confirm)
+ show_info_no_file ();
return false;
+ }
if (_no_confirm)
{
@@ -325,4 +329,16 @@ public class CleanBuildFiles : GLib.Object
return name_a.collate (name_b);
}
+
+ private void show_info_no_file ()
+ {
+ Dialog dialog = new MessageDialog (_main_window,
+ DialogFlags.DESTROY_WITH_PARENT,
+ MessageType.INFO,
+ ButtonsType.OK,
+ _("No build file to clean up."));
+
+ dialog.run ();
+ dialog.destroy ();
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]