glom r1852 - in trunk: . glom



Author: murrayc
Date: Mon Jan 19 17:08:48 2009
New Revision: 1852
URL: http://svn.gnome.org/viewvc/glom?rev=1852&view=rev

Log:
2009-01-19  Murray Cumming  <murrayc murrayc com>

* glom/application.cc: document_history_add: Revert the previous,
because I removed the new API from Bakery and just fixed the existing 
Bakery method instead.

Modified:
   trunk/ChangeLog
   trunk/glom/application.cc

Modified: trunk/glom/application.cc
==============================================================================
--- trunk/glom/application.cc	(original)
+++ trunk/glom/application.cc	Mon Jan 19 17:08:48 2009
@@ -2373,24 +2373,8 @@
     if (prevent)
       return;
   }
-  // Check if the file exists because Gtk::RecentManager spits out a warning otherwise
-  Glib::RefPtr<Gio::File> file = Gio::File::create_for_uri (file_uri);
-  if (file->query_exists())
-  {
-    // Call the base class:
-    Bakery::App_WithDoc_Gtk::document_history_add(file_uri);    
-  }
-  else
-  {
-    Gtk::RecentManager::Data data;
-    data.display_name = get_document()->get_name();
-    data.app_name = "Glom";
-    data.mime_type = "application/x-glom";
-    data.is_private = false;
-    Bakery::App_WithDoc_Gtk::document_history_add(file_uri, data);
-  }
-  
 
+  Bakery::App_WithDoc_Gtk::document_history_add(file_uri);
 }
 
 #ifndef GLOM_ENABLE_CLIENT_ONLY



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