[baobab] Reorder code
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Reorder code
- Date: Mon, 13 Aug 2012 19:48:18 +0000 (UTC)
commit 4a98b8860107435e8b134cfeec6ff091fbf6e181
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Aug 13 21:46:22 2012 +0200
Reorder code
Move private method before the public methods that call it
src/baobab-scanner.vala | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/src/baobab-scanner.vala b/src/baobab-scanner.vala
index 6025c03..3622457 100644
--- a/src/baobab-scanner.vala
+++ b/src/baobab-scanner.vala
@@ -319,25 +319,6 @@ namespace Baobab {
return this.self != null;
}
- public void scan (bool force) {
- if (force) {
- successful = false;
- }
-
- if (!successful) {
- cancel_and_reset ();
-
- // the thread owns a reference on the Scanner object
- this.self = this;
-
- thread = new GLib2.Thread ("scanner", scan_in_thread);
-
- process_result_idle = Timeout.add (100, process_results);
- } else {
- completed ();
- }
- }
-
void cancel_and_reset () {
cancellable.cancel ();
@@ -363,6 +344,25 @@ namespace Baobab {
scan_error = null;
}
+ public void scan (bool force) {
+ if (force) {
+ successful = false;
+ }
+
+ if (!successful) {
+ cancel_and_reset ();
+
+ // the thread owns a reference on the Scanner object
+ this.self = this;
+
+ thread = new GLib2.Thread ("scanner", scan_in_thread);
+
+ process_result_idle = Timeout.add (100, process_results);
+ } else {
+ completed ();
+ }
+ }
+
public void cancel () {
if (!successful) {
cancel_and_reset ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]