*
* 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>
return;
}
-#if GLIB_CHECK_VERSION(2,22,0)
if (!g_file_info_has_namespace (info, "metadata")) {
g_object_unref (info);
return;
}
-#endif
attrs = g_file_info_list_attributes (info, "metadata");
for (i = 0; attrs[i]; i++) {
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,