[gnome-games/wip/exalm/gtk4: 235/238] game-thumbnail: Don't draw background and border
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 235/238] game-thumbnail: Don't draw background and border
- Date: Mon, 19 Aug 2019 20:36:11 +0000 (UTC)
commit ddfb96a017a895233a9b159144938a7d70d66af1
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Mon Aug 19 23:47:19 2019 +0500
game-thumbnail: Don't draw background and border
It's implicit now.
src/ui/game-thumbnail.vala | 13 -------------
1 file changed, 13 deletions(-)
---
diff --git a/src/ui/game-thumbnail.vala b/src/ui/game-thumbnail.vala
index af4944f2..2c1bb335 100644
--- a/src/ui/game-thumbnail.vala
+++ b/src/ui/game-thumbnail.vala
@@ -116,9 +116,7 @@ private class Games.GameThumbnail : Gtk.DrawingArea {
if (pixbuf == null)
return false;
- draw_background (context);
draw_pixbuf (context, pixbuf);
- draw_border (context);
return true;
}
@@ -135,15 +133,12 @@ private class Games.GameThumbnail : Gtk.DrawingArea {
rounded_rectangle (context.cr, 0.5, 0.5, context.width - 1, context.height - 1,
border_radius);
context.cr.fill ();
draw_pixbuf (context, pixbuf);
- draw_border (context);
return true;
}
public void draw_default (DrawingContext context) {
- draw_background (context);
draw_emblem_icon (context, Config.APPLICATION_ID + "-symbolic", EMBLEM_SCALE);
- draw_border (context);
}
private void draw_emblem_icon (DrawingContext context, string icon_name, double scale) {
@@ -331,14 +326,6 @@ private class Games.GameThumbnail : Gtk.DrawingArea {
return mask;
}
- private void draw_background (DrawingContext context) {
- context.style.render_background (context.cr, 0.0, 0.0, context.width, context.height);
- }
-
- private void draw_border (DrawingContext context) {
- context.style.render_frame (context.cr, 0.0, 0.0, context.width, context.height);
- }
-
private void rounded_rectangle (Cairo.Context cr, double x, double y, double width, double height,
double radius) {
const double ARC_0 = 0;
const double ARC_1 = Math.PI * 0.5;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]