summaryrefslogtreecommitdiffstats
path: root/src/interface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.cpp')
-rw-r--r--src/interface.cpp76
1 files changed, 50 insertions, 26 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index 986d3107f..ab1e550a3 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -1701,32 +1701,56 @@ void ContextMenu::AppendItemFromVerb(Inkscape::Verb *verb)//, SPDesktop *view)//
void ContextMenu::MakeObjectMenu(void)
{
- GObjectClass *klass = G_OBJECT_GET_CLASS(_object); //to deduce the object's type from its class
-
- if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_ITEM))
- {
- MakeItemMenu ();
- }
- if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_GROUP))
- {
- MakeGroupMenu();
- }
- if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_ANCHOR))
- {
- MakeAnchorMenu();
- }
- if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_IMAGE))
- {
- MakeImageMenu();
- }
- if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_SHAPE))
- {
- MakeShapeMenu();
- }
- if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_TEXT))
- {
- MakeTextMenu();
- }
+// GObjectClass *klass = G_OBJECT_GET_CLASS(_object); //to deduce the object's type from its class
+//
+// if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_ITEM))
+// {
+// MakeItemMenu ();
+// }
+// if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_GROUP))
+// {
+// MakeGroupMenu();
+// }
+// if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_ANCHOR))
+// {
+// MakeAnchorMenu();
+// }
+// if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_IMAGE))
+// {
+// MakeImageMenu();
+// }
+// if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_SHAPE))
+// {
+// MakeShapeMenu();
+// }
+// if (G_TYPE_CHECK_CLASS_TYPE(klass, SP_TYPE_TEXT))
+// {
+// MakeTextMenu();
+// }
+
+ if (SP_IS_ITEM(_object)) {
+ MakeItemMenu();
+ }
+
+ if (SP_IS_GROUP(_object)) {
+ MakeGroupMenu();
+ }
+
+ if (SP_IS_ANCHOR(_object)) {
+ MakeAnchorMenu();
+ }
+
+ if (SP_IS_IMAGE(_object)) {
+ MakeImageMenu();
+ }
+
+ if (SP_IS_SHAPE(_object)) {
+ MakeShapeMenu();
+ }
+
+ if (SP_IS_TEXT(_object)) {
+ MakeTextMenu();
+ }
}
void ContextMenu::MakeItemMenu (void)