]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-metadata.c
cleanup
[evince.git] / shell / ev-metadata.c
index a8fde318e3afd20c1ff1039ab6b0abe81fac544e..3a0eefabb1abe82947b5da94b4ff78022b085072 100644 (file)
@@ -15,7 +15,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include <gio/gio.h>
@@ -136,6 +136,12 @@ ev_metadata_new (GFile *file)
        return metadata;
 }
 
+gboolean
+ev_metadata_is_empty (EvMetadata *metadata)
+{
+       return g_hash_table_size (metadata->items) == 0;
+}
+
 gboolean
 ev_metadata_get_string (EvMetadata  *metadata,
                        const gchar *key,