summaryrefslogtreecommitdiffstats
path: root/src/extension/dbus/document-interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/extension/dbus/document-interface.cpp37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/extension/dbus/document-interface.cpp b/src/extension/dbus/document-interface.cpp
index c67234b34..66d1c5dfa 100644
--- a/src/extension/dbus/document-interface.cpp
+++ b/src/extension/dbus/document-interface.cpp
@@ -17,6 +17,7 @@
#include "file.h" //IO
#include "document-interface.h"
+#include "application-interface.h"
#include <string.h>
#include <dbus/dbus-glib.h>
#include "desktop-handles.h" //sp_desktop_document()
@@ -320,43 +321,7 @@ document_interface_new (void)
return (DocumentInterface*)g_object_new (TYPE_DOCUMENT_INTERFACE, NULL);
}
-/*
- * Error stuff...
- *
- * To add a new error type, edit here and in the .h InkscapeError enum.
- */
-GQuark
-inkscape_error_quark (void)
-{
- static GQuark quark = 0;
- if (!quark)
- quark = g_quark_from_static_string ("inkscape_error");
-
- return quark;
-}
-
-#define ENUM_ENTRY(NAME, DESC) { NAME, "" #NAME "", DESC }
-GType inkscape_error_get_type(void)
-{
- static GType etype = 0;
-
- if (etype == 0) {
- static const GEnumValue values[] =
- {
-
- ENUM_ENTRY(INKSCAPE_ERROR_SELECTION, "Incompatible_Selection"),
- ENUM_ENTRY(INKSCAPE_ERROR_OBJECT, "Incompatible_Object"),
- ENUM_ENTRY(INKSCAPE_ERROR_VERB, "Failed_Verb"),
- ENUM_ENTRY(INKSCAPE_ERROR_OTHER, "Generic_Error"),
- { 0, 0, 0 }
- };
-
- etype = g_enum_register_static("InkscapeError", values);
- }
-
- return etype;
-}
/****************************************************************************
MISC FUNCTIONS