paperbox r120 - in trunk: . src



Author: markoa
Date: Sat Mar 15 17:05:27 2008
New Revision: 120
URL: http://svn.gnome.org/viewvc/paperbox?rev=120&view=rev

Log:
Remember to set document's mtime

Modified:
   trunk/ChangeLog
   trunk/src/browser.cc
   trunk/src/tracker-phone.cc

Modified: trunk/src/browser.cc
==============================================================================
--- trunk/src/browser.cc	(original)
+++ trunk/src/browser.cc	Sat Mar 15 17:05:27 2008
@@ -261,13 +261,13 @@
         list<shared_ptr<Document> > ldocs;
         get_all_documents(ldocs);
 
-        //sort by modtime
+        // sort by modtime, descending
         ldocs.sort(doc_mtime_compare_desc());
 
         // copy and return
         list<shared_ptr<Document> >::iterator it(ldocs.begin());
         list<shared_ptr<Document> >::iterator end(ldocs.end());
-        for ( int i = 0; (it != end) && (i < count*3); ++it) {
+        for ( int i = 0; (it != end) && (i < count); ++it) {
             docs.push_back(*it);
             ++i;
         }

Modified: trunk/src/tracker-phone.cc
==============================================================================
--- trunk/src/tracker-phone.cc	(original)
+++ trunk/src/tracker-phone.cc	Sat Mar 15 17:05:27 2008
@@ -229,6 +229,7 @@
         Glib::ustring file_modified;
         get_file_modification_time (uri, modtime, file_modified);
         document->set_modification_time(file_modified);
+        document->set_mtime(modtime);
 
         if (! is_empty_string(keys[SUBJECT])) {
             Glib::ustring subject(keys[SUBJECT]);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]