[gnome-games/wip/exalm/gtk4: 41/48] flash-box: Remove draw()



commit 1dea656e4e6ab0f739a9ff3a096410d74b81519e
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Mon Aug 19 20:30:25 2019 +0500

    flash-box: Remove draw()

 src/ui/flash-box.vala | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/src/ui/flash-box.vala b/src/ui/flash-box.vala
index f7d9f144..2493ba45 100644
--- a/src/ui/flash-box.vala
+++ b/src/ui/flash-box.vala
@@ -15,15 +15,6 @@ private class Games.FlashBox : Gtk.Widget {
        private int64 flash_start_time;
        private uint tick_callback_id;
 
-       public override bool draw (Cairo.Context cr) {
-               var width = get_allocated_width ();
-               var height = get_allocated_height ();
-
-               get_style_context ().render_background (cr, 0, 0, width, height);
-
-               return true;
-       }
-
        public void flash () {
                if (tick_callback_id == 0) {
                        tick_callback_id = add_tick_callback (on_tick);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]