[libshumate] tile: Use widget size rather than texture size
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libshumate] tile: Use widget size rather than texture size
- Date: Tue, 6 Jul 2021 09:51:41 +0000 (UTC)
commit 31b94b2a2caa15176e98fa8da3753d3b8eeed909
Author: James Westman <james jwestman net>
Date: Wed Jun 23 01:25:37 2021 -0500
tile: Use widget size rather than texture size
Draw the tile texture to cover the widget, rather than at the size of
the texture, since they may be different.
shumate/shumate-tile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/shumate/shumate-tile.c b/shumate/shumate-tile.c
index 10e7aeb..3aa56b7 100644
--- a/shumate/shumate-tile.c
+++ b/shumate/shumate-tile.c
@@ -78,8 +78,8 @@ shumate_tile_snapshot (GtkWidget *widget,
texture,
&GRAPHENE_RECT_INIT(
0, 0,
- gdk_texture_get_width (texture),
- gdk_texture_get_height (texture)
+ gtk_widget_get_width (widget),
+ gtk_widget_get_height (widget)
));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]