From 1160f730d945b282b503b041a3f5a27486e01abf Mon Sep 17 00:00:00 2001 From: kidproto Date: Tue, 14 Aug 2007 07:31:58 +0000 Subject: [PATCH] Rolled back a couple of nasties from a bad patch...oops! Added author of the last code, Jason Kivlighn from his patch to fix cc namespacing... --- AUTHORS | 2 +- src/dialogs/rdf.cpp | 20 +------------------- src/preferences-skeleton.h | 1 - 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/AUTHORS b/AUTHORS index f9b3dfa37..0b197e312 100644 --- a/AUTHORS +++ b/AUTHORS @@ -102,4 +102,4 @@ Michael Wybrow Daniel Yacob David Yip Masatake Yamato - +Jason Kivlighn diff --git a/src/dialogs/rdf.cpp b/src/dialogs/rdf.cpp index cf3cd581f..1e26a79c4 100644 --- a/src/dialogs/rdf.cpp +++ b/src/dialogs/rdf.cpp @@ -23,7 +23,6 @@ #include "xml/repr.h" #include "rdf.h" #include "sp-item-group.h" -#include "prefs-utils.h" /* @@ -977,20 +976,6 @@ struct rdf_entity_default_t { struct rdf_entity_default_t rdf_defaults[] = { { "format", "image/svg+xml", }, { "type", "http://purl.org/dc/dcmitype/StillImage", }, - { "title", "", }, - { "date", "", }, - { "creator", "", }, - { "rights", "", }, - { "publisher", "", }, - { "identifier", "", }, - { "source", "", }, - { "relation", "", }, - { "language", "", }, - { "subject", "", }, - { "coverage", "", }, - { "description", "", }, - { "contributor", "", }, - { "license_uri", "", }, { NULL, NULL, } }; @@ -1019,11 +1004,8 @@ rdf_set_defaults ( SPDocument * doc ) struct rdf_work_entity_t * entity = rdf_find_entity ( rdf_default->name ); g_assert ( entity != NULL ); - //get default matedata defined by user preferences - const gchar * text = prefs_get_string_attribute ("options.defaultmetadata", rdf_default->name); - if ( rdf_get_work_entity ( doc, entity ) == NULL ) { - rdf_set_work_entity ( doc, entity, text ? text : rdf_default->text ); + rdf_set_work_entity ( doc, entity, rdf_default->text ); } } } diff --git a/src/preferences-skeleton.h b/src/preferences-skeleton.h index d6fea990d..8a04640e1 100644 --- a/src/preferences-skeleton.h +++ b/src/preferences-skeleton.h @@ -208,7 +208,6 @@ static char const preferences_skeleton[] = " \n" " \n" " \n" -" \n" " \n" " \n" " \n" -- 2.30.2