[gnome-screensaver] gs-window-x11: Properly set background to black



commit ec66dbab41fe3b2a3a805a0c7467595dfcbacab5
Author: Marc Deslauriers <marc deslauriers ubuntu com>
Date:   Thu Aug 25 13:25:20 2011 -0400

    gs-window-x11: Properly set background to black
    
    This fixes an issue where if the lock dialog is cancelled by hitting
    the escape key, or times out, the screen turns white instead of black.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657358

 src/gs-window-x11.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index c96c9fa..ae85df7 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -274,6 +274,7 @@ clear_widget (GtkWidget *widget)
 
         gdk_window_set_background (gtk_widget_get_window (widget),
                                    &color);
+        gtk_widget_modify_bg (widget, GTK_STATE_NORMAL, &color);
         gtk_widget_queue_draw (GTK_WIDGET (widget));
 }
 



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