[california] Fix black background w/ GtkPopover and Unity/Ambiance: Bug #735421
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california] Fix black background w/ GtkPopover and Unity/Ambiance: Bug #735421
- Date: Wed, 3 Sep 2014 22:49:18 +0000 (UTC)
commit 3442b381ec1183cec406f5a3043d04efd0496370
Author: Jim Nelson <jim yorba org>
Date: Wed Sep 3 15:47:50 2014 -0700
Fix black background w/ GtkPopover and Unity/Ambiance: Bug #735421
If a GtkScrolledWindow is present in a GtkGrid (or perhaps just a
GtkScrolledWindow) which are in a GtkPopover, Unity/Ambiance will
set the entire grid's background color to black. Problem corrected
manually in the code.
./configure --enable-unity must be used to activate this fix.
src/host/host-show-event.vala | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/host/host-show-event.vala b/src/host/host-show-event.vala
index 5d40370..cc1ab59 100644
--- a/src/host/host-show-event.vala
+++ b/src/host/host-show-event.vala
@@ -118,6 +118,19 @@ public class ShowEvent : Gtk.Grid, Toolkit.Card {
Calendar.System.instance.today_changed.disconnect(build_display);
}
+#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
+
public void jumped_to(Toolkit.Card? from, Toolkit.Card.Jump reason, Value? message) {
// no message, don't update display
if (message == null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]