Linux: Fix compile error due to gdk_pixbuf_unref deprecation (issue #593).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@634 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2012-05-18 21:41:24 +00:00
parent 0b003c55a9
commit df4544e949
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ void WebDragSource::StartDragging(const WebDropData& drop_data,
const SkBitmap& bitmap = image.getSkBitmap(); const SkBitmap& bitmap = image.getSkBitmap();
GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&bitmap); GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&bitmap);
gtk_drag_set_icon_pixbuf(context, pixbuf, image_offset.x, image_offset.y); gtk_drag_set_icon_pixbuf(context, pixbuf, image_offset.x, image_offset.y);
gdk_pixbuf_unref(pixbuf); g_object_unref(pixbuf);
} else { } else {
gtk_drag_set_icon_default(context); gtk_drag_set_icon_default(context);
} }