Code

Correcting statements collapsed to a single line.
[inkscape.git] / src / widgets / sp-widget.cpp
index 40f1514cd9a32c221fd4ee1cd852d54a9c4e1c61..f694c461ce5ca877eafdf5ccf998c500b906d39a 100644 (file)
@@ -46,10 +46,14 @@ static guint signals[LAST_SIGNAL] = {0};
 GtkType
 sp_widget_get_type (void)
 {
+    //TODO: switch to GObject
+    // GtkType and such calls were deprecated a while back with the
+    // introduction of GObject as a separate layer, with GType instead. --JonCruz
+
        static GtkType type = 0;
        if (!type) {
                static const GtkTypeInfo info = {
-                       "SPWidget",
+                       (gchar*) "SPWidget",
                        sizeof (SPWidget),
                        sizeof (SPWidgetClass),
                        (GtkClassInitFunc) sp_widget_class_init,