diff options
| author | Soren Berg <glimmer07@gmail.com> | 2009-07-22 06:22:59 +0000 |
|---|---|---|
| committer | glimmer07 <glimmer07@users.sourceforge.net> | 2009-07-22 06:22:59 +0000 |
| commit | 4caca0b9edefb8470c058fdfed95ff50e0324499 (patch) | |
| tree | 51259debfeb21f29da0911cf6ce23ed8d58e0514 /src/extension/dbus/document-interface.h | |
| parent | worked on path parsing. (diff) | |
| download | inkscape-4caca0b9edefb8470c058fdfed95ff50e0324499.tar.gz inkscape-4caca0b9edefb8470c058fdfed95ff50e0324499.zip | |
Fixed GErrors.
Added many GErrors, especially for unfound objects.
transfered many functions to using verbs instead of the function the verb calls to make error reporting easier.
(bzr r8254.1.19)
Diffstat (limited to 'src/extension/dbus/document-interface.h')
| -rw-r--r-- | src/extension/dbus/document-interface.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/extension/dbus/document-interface.h b/src/extension/dbus/document-interface.h index 9b56da417..ff0452a14 100644 --- a/src/extension/dbus/document-interface.h +++ b/src/extension/dbus/document-interface.h @@ -31,6 +31,20 @@ struct _DocumentInterfaceClass { GObjectClass parent; }; +typedef enum +{ + INKSCAPE_ERROR_SELECTION, + INKSCAPE_ERROR_OBJECT, + INKSCAPE_ERROR_VERB, + INKSCAPE_ERROR_OTHER +} InkscapeError; + +#define INKSCAPE_ERROR (inkscape_error_quark ()) +#define INKSCAPE_TYPE_ERROR (inkscape_error_get_type ()) + +GQuark inkscape_error_quark (void); +GType inkscape_error_get_type (void); + struct DBUSPoint { int x; int y; @@ -42,7 +56,7 @@ struct DBUSPoint { gboolean document_interface_delete_all (DocumentInterface *object, GError **error); -void +gboolean document_interface_call_verb (DocumentInterface *object, gchar *verbid, GError **error); @@ -118,12 +132,12 @@ document_interface_set_attribute (DocumentInterface *object, char *shape, char *attribute, char *newval, GError **error); -void +gboolean document_interface_set_int_attribute (DocumentInterface *object, char *shape, char *attribute, int newval, GError **error); -void +gboolean document_interface_set_double_attribute (DocumentInterface *object, char *shape, char *attribute, double newval, GError **error); @@ -186,6 +200,9 @@ document_interface_load (DocumentInterface *object, gboolean document_interface_save_as (DocumentInterface *object, gchar *filename, GError **error); + +gboolean +document_interface_mark_as_unmodified (DocumentInterface *object, GError **error); /* gboolean document_interface_print_to_file (DocumentInterface *object, GError **error); |
