Code

Use subdirectories with icon sizes.
[inkscape.git] / src / widgets / gradient-image.cpp
index d4eb0114357af7aef1d3ca3091856aa375320939..11d2d528aa022bedc5f38c613a29951377499fe6 100644 (file)
@@ -44,10 +44,14 @@ static GtkWidgetClass *parent_class;
 GtkType
 sp_gradient_image_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) {
                GtkTypeInfo info = {
-                       "SPGradientImage",
+                       (gchar*) "SPGradientImage",
                        sizeof (SPGradientImage),
                        sizeof (SPGradientImageClass),
                        (GtkClassInitFunc) sp_gradient_image_class_init,
@@ -256,7 +260,7 @@ sp_gradient_image_gradient_release (SPObject *, SPGradientImage *image)
 }
 
 static void
-sp_gradient_image_gradient_modified (SPObject *, guint flags, SPGradientImage *image)
+sp_gradient_image_gradient_modified (SPObject *, guint /*flags*/, SPGradientImage *image)
 {
        sp_gradient_image_update (image);
 }