[baobab] Make sure to update recent info when scanning a location
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Make sure to update recent info when scanning a location
- Date: Wed, 3 Oct 2012 17:00:37 +0000 (UTC)
commit 4fc1e61a41ad58e5c8d5d68d61b2c14ec2141a23
Author: Stefano Facchini <stefano facchini gmail com>
Date: Mon Oct 1 23:19:36 2012 +0200
Make sure to update recent info when scanning a location
https://bugzilla.gnome.org/show_bug.cgi?id=685252
src/baobab-window.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index 1d5876a..bb3ebc0 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -246,10 +246,14 @@ namespace Baobab {
}
active_location = location;
+
+ // Update the timestamp for GtkRecentManager
+ location_list.add_location (location);
}
void on_scan_location_activate (Location location) {
set_active_location (location);
+
if (location.is_volume) {
location.mount_volume.begin ((location_, res) => {
try {
@@ -591,8 +595,6 @@ namespace Baobab {
return;
}
- location_list.add_location (location);
-
set_active_location (location);
scan_active_location (false);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]