[california/wip/736161-black] Potential fix



commit 16e7dfd67e9dfa4bae366006900e1aeb2675d351
Author: Jim Nelson <jim yorba org>
Date:   Tue Sep 9 17:52:41 2014 -0700

    Potential fix

 src/host/host-create-update-event.vala |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/host/host-create-update-event.vala b/src/host/host-create-update-event.vala
index 94c5cb1..ee9c417 100644
--- a/src/host/host-create-update-event.vala
+++ b/src/host/host-create-update-event.vala
@@ -115,6 +115,19 @@ public class CreateUpdateEvent : Gtk.Grid, Toolkit.Card {
         Calendar.System.instance.is_24hr_changed.disconnect(on_update_time_summary);
     }
     
+#if ENABLE_UNITY
+    // When description_text_window is visible, the entire GtkGrid's background color goes black
+    // in the GtkPopover; this overrides the color and uses GtkPopover's background color for the
+    // GtkGrid.  See:
+    // https://bugzilla.gnome.org/show_bug.cgi?id=735421
+    public override void realize() {
+        base.realize();
+        
+        Gdk.RGBA bg = get_toplevel().get_style_context().get_background_color(Gtk.StateFlags.NORMAL);
+        override_background_color(Gtk.StateFlags.NORMAL, bg);
+    }
+#endif
+    
     private bool transform_summary_to_accept(Binding binding, Value source_value, ref Value target_value) {
         target_value = summary_entry.text_length > 0 && (event != null ? event.is_valid(false) : false);
         


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