Stop referring to ClutterTexture

ClutterTexture is removed from mutter's clutter fork, so lets stop
referring to it. This also happens to fix an incorrect type cast.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/822
This commit is contained in:
Jonas Ådahl 2019-11-12 19:43:38 +01:00
parent 66fc5c07bb
commit 88bcaafe86
3 changed files with 4 additions and 5 deletions

View File

@ -223,7 +223,7 @@ window_backed_app_get_icon (ShellApp *app,
/** /**
* shell_app_create_icon_texture: * shell_app_create_icon_texture:
* *
* Look up the icon for this application, and create a #ClutterTexture * Look up the icon for this application, and create a #ClutterActor
* for it at the given size. * for it at the given size.
* *
* Return value: (transfer none): A floating #ClutterActor * Return value: (transfer none): A floating #ClutterActor

View File

@ -22,9 +22,8 @@
* SECTION:st-drawing-area * SECTION:st-drawing-area
* @short_description: A dynamically-sized Cairo drawing area * @short_description: A dynamically-sized Cairo drawing area
* *
* #StDrawingArea is similar to #ClutterCairoTexture in that * #StDrawingArea allows drawing via Cairo; the primary difference is that
* it allows drawing via Cairo; the primary difference is that * it is dynamically sized. To use, connect to the #StDrawingArea::repaint
* it is dynamically sized. To use, connect to the #StDrawingArea::repaint
* signal, and inside the signal handler, call * signal, and inside the signal handler, call
* st_drawing_area_get_context() to get the Cairo context to draw to. The * st_drawing_area_get_context() to get the Cairo context to draw to. The
* #StDrawingArea::repaint signal will be emitted by default when the area is * #StDrawingArea::repaint signal will be emitted by default when the area is

View File

@ -146,7 +146,7 @@ st_image_content_get_preferred_size (ClutterContent *content,
{ {
StImageContent *self = ST_IMAGE_CONTENT (content); StImageContent *self = ST_IMAGE_CONTENT (content);
StImageContentPrivate *priv = st_image_content_get_instance_private (self); StImageContentPrivate *priv = st_image_content_get_instance_private (self);
ClutterTexture *texture; CoglTexture *texture;
texture = clutter_image_get_texture (CLUTTER_IMAGE (content)); texture = clutter_image_get_texture (CLUTTER_IMAGE (content));