[gnome-settings-daemon] Ensure the window is realized before we invalidate it.



commit 147e802023f37d14ab81a2f9ce0e5761d63ed4d9
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 10 11:23:35 2010 +0000

    Ensure the window is realized before we invalidate it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=604918

 plugins/common/gsd-osd-window.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/gsd-osd-window.c b/plugins/common/gsd-osd-window.c
index 5fa2d79..c442bbc 100644
--- a/plugins/common/gsd-osd-window.c
+++ b/plugins/common/gsd-osd-window.c
@@ -87,6 +87,7 @@ fade_timeout (GsdOsdWindow *window)
                 rect.width = allocation.width;
                 rect.height = allocation.height;
 
+                gtk_widget_realize (win);
                 gdk_window_invalidate_rect (gtk_widget_get_window (win), &rect, FALSE);
         }
 



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