[california/wip/742310-black] Get all widgets added to Stack
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california/wip/742310-black] Get all widgets added to Stack
- Date: Tue, 6 Jan 2015 23:11:00 +0000 (UTC)
commit 3f318a71b30f3bef65bab4b2c63efe4a05f258b3
Author: Jim Nelson <jim yorba org>
Date: Tue Jan 6 15:10:57 2015 -0800
Get all widgets added to Stack
src/view/month/month-controller.vala | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/view/month/month-controller.vala b/src/view/month/month-controller.vala
index 6a1638f..34fc588 100644
--- a/src/view/month/month-controller.vala
+++ b/src/view/month/month-controller.vala
@@ -98,6 +98,12 @@ 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++) {
@@ -133,11 +139,6 @@ public class Controller : BaseObject, View.Controllable {
Grid grid = new Grid(this, moy);
id = grid.id;
- grid.realize.connect(() => {
- Gdk.RGBA bg =
grid.get_toplevel().get_style_context().get_background_color(Gtk.StateFlags.NORMAL);
- grid.override_background_color(Gtk.StateFlags.NORMAL, bg);
- });
-
return grid;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]