gnome-commander r2526 - in trunk: . src/tags



Author: epiotr
Date: Tue Apr  7 18:16:11 2009
New Revision: 2526
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2526&view=rev

Log:
Properly report unsuported Doc.* tags

Modified:
   trunk/ChangeLog
   trunk/src/tags/gnome-cmd-tags.cc

Modified: trunk/src/tags/gnome-cmd-tags.cc
==============================================================================
--- trunk/src/tags/gnome-cmd-tags.cc	(original)
+++ trunk/src/tags/gnome-cmd-tags.cc	Tue Apr  7 18:16:11 2009
@@ -748,13 +748,17 @@
                         ret_val = f->metadata->operator [] (tag).c_str();
                         break;
 
-        case TAG_CHM  : break;
-
         case TAG_DOC  :
 #ifndef HAVE_GSF
+#ifndef HAVE_PDF
                         return _(no_support_for_libgsf_tags_string);
 #endif
+#endif
                         gcmd_tags_libgsf_load_metadata(f);
+                        gcmd_tags_poppler_load_metadata(f);
+                        ret_val = f->metadata->operator [] (tag).c_str();
+                        break;
+
         case TAG_PDF  :
 #ifndef HAVE_PDF
                         return _(no_support_for_poppler_tags_string);
@@ -763,6 +767,8 @@
                         ret_val = f->metadata->operator [] (tag).c_str();
                         break;
 
+        case TAG_CHM  : break;
+
         case TAG_FILE : gcmd_tags_file_load_metadata(f);
                         ret_val = f->metadata->operator [] (tag).c_str();
                         break;



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