[gnome-screensaver] preferences: Don't call gdk_window_clear



commit 9a85216227dbcb05c456fac79ab02b5003f808e4
Author: Ray Strode <rstrode redhat com>
Date:   Thu Sep 30 00:04:38 2010 -0400

    preferences: Don't call gdk_window_clear
    
    It's obsolete

 src/gnome-screensaver-preferences.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-screensaver-preferences.c b/src/gnome-screensaver-preferences.c
index e1bb1f5..464dd93 100644
--- a/src/gnome-screensaver-preferences.c
+++ b/src/gnome-screensaver-preferences.c
@@ -360,7 +360,7 @@ preview_clear (GtkWidget *widget)
         GdkColor color = { 0, 0, 0 };
 
         gtk_widget_modify_bg (widget, GTK_STATE_NORMAL, &color);
-        gdk_window_clear (gtk_widget_get_window (widget));
+        gtk_widget_queue_draw (widget);
 }
 
 static void



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