summaryrefslogtreecommitdiffstats
path: root/src/inkscape-private.h
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-06-25 15:32:51 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-06-25 15:32:51 +0000
commit69ae98cb453849c6d32a1c7ea8bc057fb13deea3 (patch)
tree6defcecd267d9757d9667367541d00d07c2a5e40 /src/inkscape-private.h
parentfix bug introduced in rev. 13403 (merge with trunk) (diff)
downloadinkscape-69ae98cb453849c6d32a1c7ea8bc057fb13deea3.tar.gz
inkscape-69ae98cb453849c6d32a1c7ea8bc057fb13deea3.zip
1. make it compile
(bzr r13341.5.1)
Diffstat (limited to 'src/inkscape-private.h')
-rw-r--r--src/inkscape-private.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/inkscape-private.h b/src/inkscape-private.h
index d28ed223e..a55d92829 100644
--- a/src/inkscape-private.h
+++ b/src/inkscape-private.h
@@ -14,42 +14,42 @@
*/
#include <glib-object.h>
-#define SP_TYPE_INKSCAPE (inkscape_get_type ())
-#define SP_INKSCAPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_INKSCAPE, Inkscape))
-#define SP_INKSCAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_INKSCAPE, InkscapeClass))
-#define SP_IS_INKSCAPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_INKSCAPE))
-#define SP_IS_INKSCAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_INKSCAPE))
+//#define SP_TYPE_INKSCAPE (inkscape_get_type ())
+#define SP_INKSCAPE(obj) (dynamic_cast<Inkscape::Application*>(obj)) //(G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_INKSCAPE, Inkscape))
+//#define SP_INKSCAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_INKSCAPE, InkscapeClass))
+#define SP_IS_INKSCAPE(obj) (dynamic_cast<Inkscape::Application*> (obj) != NULL)
+//#define SP_IS_INKSCAPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_INKSCAPE))
#include "inkscape.h"
struct SPColor;
namespace Inkscape { class Selection; }
-GType inkscape_get_type (void);
+//GType inkscape_get_type (void);
-void inkscape_ref (void);
-void inkscape_unref (void);
+//void inkscape_ref (void);
+//void inkscape_unref (void);
-guint inkscape_mapalt();
-void inkscape_mapalt(guint);
+//guint inkscape_mapalt();
+//void inkscape_mapalt(guint);
-guint inkscape_trackalt();
-void inkscape_trackalt(guint);
+//guint inkscape_trackalt();
+//void inkscape_trackalt(guint);
/*
* These are meant solely for desktop, document etc. implementations
*/
-void inkscape_selection_modified (Inkscape::Selection *selection, guint flags);
-void inkscape_selection_changed (Inkscape::Selection * selection);
-void inkscape_selection_set (Inkscape::Selection * selection);
-void inkscape_eventcontext_set (Inkscape::UI::Tools::ToolBase * eventcontext);
-void inkscape_add_desktop (SPDesktop * desktop);
-void inkscape_remove_desktop (SPDesktop * desktop);
-void inkscape_activate_desktop (SPDesktop * desktop);
-void inkscape_reactivate_desktop (SPDesktop * desktop);
+//void inkscape_selection_modified (Inkscape::Selection *selection, guint flags);
+//void inkscape_selection_changed (Inkscape::Selection * selection);
+//void inkscape_selection_set (Inkscape::Selection * selection);
+//void inkscape_eventcontext_set (Inkscape::UI::Tools::ToolBase * eventcontext);
+//void inkscape_add_desktop (SPDesktop * desktop);
+//void inkscape_remove_desktop (SPDesktop * desktop);
+//void inkscape_activate_desktop (SPDesktop * desktop);
+//void inkscape_reactivate_desktop (SPDesktop * desktop);
-void inkscape_set_color (SPColor *color, float opacity);
+//void inkscape_set_color (SPColor *color, float opacity);
#endif // SEEN_INKSCAPE_PRIVATE_H