summaryrefslogtreecommitdiffstats
path: root/src/dialogs/item-properties.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2011-12-11 23:18:05 +0000
committerKris <Kris.De.Gussem@hotmail.com>2011-12-11 23:18:05 +0000
commit7c124c77c3f5db80e46ad23d74dfc92d8f3aa069 (patch)
treebfe0fd1d9b3fe2dc14580eec2ad01a6a12f134f8 /src/dialogs/item-properties.cpp
parentSPAttributeWidget C++ified (diff)
downloadinkscape-7c124c77c3f5db80e46ad23d74dfc92d8f3aa069.tar.gz
inkscape-7c124c77c3f5db80e46ad23d74dfc92d8f3aa069.zip
SPAttributeTable C++ified
(bzr r10766.1.3)
Diffstat (limited to 'src/dialogs/item-properties.cpp')
-rw-r--r--src/dialogs/item-properties.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/dialogs/item-properties.cpp b/src/dialogs/item-properties.cpp
index 4ca2b2753..ce8d4e362 100644
--- a/src/dialogs/item-properties.cpp
+++ b/src/dialogs/item-properties.cpp
@@ -356,13 +356,25 @@ static void sp_item_widget_setup( SPWidget *spw, Inkscape::Selection *selection
gtk_container_remove(GTK_CONTAINER(w), int_table);
}
- const gchar* int_labels[10] = {"onclick", "onmouseover", "onmouseout", "onmousedown", "onmouseup", "onmousemove","onfocusin", "onfocusout", "onactivate", "onload"};
-
- int_table = sp_attribute_table_new (obj, 10, int_labels, int_labels);
+ std::vector<Glib::ustring> int_labels;
+ std::vector<Glib::ustring> int_attributes;
+ int_labels.push_back("onclick");
+ int_labels.push_back("onmouseover");
+ int_labels.push_back("onmouseout");
+ int_labels.push_back("onmousedown");
+ int_labels.push_back("onmouseup");
+ int_labels.push_back("onmousemove");
+ int_labels.push_back("onfocusin");
+ int_labels.push_back("onfocusout");
+ int_labels.push_back("onfocusout");
+ int_labels.push_back("onload");
+int_attributes=int_labels;
+ SPAttributeTable* t = new SPAttributeTable (obj, int_labels, int_attributes, GTK_CONTAINER (w));
+ int_table = (GtkWidget*) t->gobj();
gtk_widget_show_all (int_table);
g_object_set_data(G_OBJECT(spw), "interactivity_table", int_table);
- gtk_container_add (GTK_CONTAINER (w), int_table);
+// gtk_container_add (GTK_CONTAINER (w), int_table);
}