mtk: Mark mtk_rectangle_to_graphene_rect in-variable as const
To silence occasional compiler warnings.
Fixes: a93471eb90
("mtk: Move Rectangle.to_graphene_rect from Meta")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3474>
This commit is contained in:
parent
3a94822e75
commit
a4181a6730
@ -286,7 +286,7 @@ mtk_rectangle_contains_rect (const MtkRectangle *outer_rect,
|
||||
* Returns: Return a graphene_rect_t created from `rect`
|
||||
*/
|
||||
graphene_rect_t
|
||||
mtk_rectangle_to_graphene_rect (MtkRectangle *rect)
|
||||
mtk_rectangle_to_graphene_rect (const MtkRectangle *rect)
|
||||
{
|
||||
return (graphene_rect_t) {
|
||||
.origin = {
|
||||
|
@ -117,7 +117,7 @@ gboolean mtk_rectangle_contains_rect (const MtkRectangle *outer_rect,
|
||||
const MtkRectangle *inner_rect);
|
||||
|
||||
MTK_EXPORT
|
||||
graphene_rect_t mtk_rectangle_to_graphene_rect (MtkRectangle *rect);
|
||||
graphene_rect_t mtk_rectangle_to_graphene_rect (const MtkRectangle *rect);
|
||||
|
||||
MTK_EXPORT
|
||||
void mtk_rectangle_from_graphene_rect (const graphene_rect_t *rect,
|
||||
|
Loading…
Reference in New Issue
Block a user