[california/wip/742310-black] More



commit db341df2b20954f61a776cc5a74fd9b7bfe23f14
Author: Jim Nelson <jim yorba org>
Date:   Tue Jan 6 15:13:49 2015 -0800

    More

 src/view/month/month-controller.vala |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/src/view/month/month-controller.vala b/src/view/month/month-controller.vala
index 34fc588..4402461 100644
--- a/src/view/month/month-controller.vala
+++ b/src/view/month/month-controller.vala
@@ -31,6 +31,15 @@ public class Controller : BaseObject, View.Controllable {
         public MasterGrid(Controller owner) {
             _owner = owner;
         }
+        
+        public override void add(Gtk.Widget widget) {
+            base.add(widget);
+            
+            widget.realize.connect(() => {
+                Gdk.RGBA bg = 
widget.get_toplevel().get_style_context().get_background_color(Gtk.StateFlags.NORMAL);
+                widget.override_background_color(Gtk.StateFlags.NORMAL, bg);
+            });
+        }
     }
     
     /**
@@ -98,12 +107,6 @@ public class Controller : BaseObject, View.Controllable {
             trim_presentation_from_cache, ensure_presentation_in_cache);
         
         stack.bind_property("transition-running", this, PROP_IN_TRANSITION, BindingFlags.SYNC_CREATE);
-        stack.add.connect((widget) => {
-            widget.realize.connect(() => {
-                Gdk.RGBA bg = 
widget.get_toplevel().get_style_context().get_background_color(Gtk.StateFlags.NORMAL);
-                widget.override_background_color(Gtk.StateFlags.NORMAL, bg);
-            });
-        });
         
         // insert labels for days of the week across top of master grid
         for (int col = 0; col < Grid.COLS; col++) {


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