X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fcanvas-imageframe.c;h=e0f0f2f743ce5c20e50e028adc597a415776ae39;hb=29f0d9732eb68fcaa22219cedddddd47bcaa8c17;hp=31ac9e36de689af1885261bbb3269310076bca99;hpb=52eba2ccbed1b13ab1651b35d9407f045c621eb8;p=ardour.git diff --git a/gtk2_ardour/canvas-imageframe.c b/gtk2_ardour/canvas-imageframe.c index 31ac9e36de..e0f0f2f743 100644 --- a/gtk2_ardour/canvas-imageframe.c +++ b/gtk2_ardour/canvas-imageframe.c @@ -100,10 +100,9 @@ gnome_canvas_imageframe_class_init (GnomeCanvasImageFrameClass *class) g_object_class_install_property (gobject_class, PROP_PIXBUF, - g_param_spec_boxed ("pixbuf", + g_param_spec_pointer ("pixbuf", _("pixbuf"), _("the pixbuf"), - GDK_TYPE_PIXBUF, G_PARAM_WRITABLE)); g_object_class_install_property (gobject_class, PROP_X, @@ -181,8 +180,6 @@ gnome_canvas_imageframe_init (GnomeCanvasImageFrame *image) image->height = 0.0; image->drawwidth = 0.0; image->anchor = GTK_ANCHOR_CENTER; - // GTK2FIX - // GNOME_CANVAS_ITEM(image)->object.flags |= GNOME_CANVAS_ITEM_NO_AUTO_REDRAW; } static void @@ -291,10 +288,10 @@ gnome_canvas_imageframe_set_property (GObject *object, switch (prop_id) { case PROP_PIXBUF: - if (item->canvas->aa && g_value_get_boxed (value)) { + if (item->canvas->aa && g_value_get_pointer (value)) { if (image->pixbuf != NULL) art_pixbuf_free (image->pixbuf); - image->pixbuf = g_value_get_boxed (value); + image->pixbuf = g_value_get_pointer (value); } update = TRUE; break;