[Xfce4-commits] <ristretto:master> Improve background-color of monitor-chooser

Stephan Arts noreply at xfce.org
Sun Oct 23 21:50:01 CEST 2011


Updating branch refs/heads/master
         to a69b26289c40b51063f19b09600017b30748d96f (commit)
       from 0a71f36a259e2c3f818b5a7b25b2677e55b90d5f (commit)

commit a69b26289c40b51063f19b09600017b30748d96f
Author: Stephan Arts <stephan at xfce.org>
Date:   Sun Oct 23 20:35:45 2011 +0200

    Improve background-color of monitor-chooser

 src/monitor_chooser.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/monitor_chooser.c b/src/monitor_chooser.c
index 1912dd1..244f764 100644
--- a/src/monitor_chooser.c
+++ b/src/monitor_chooser.c
@@ -234,7 +234,16 @@ rstto_monitor_chooser_paint(GtkWidget *widget)
     gint row_width = 0;
     gint id = 0;
 
-    gdk_window_clear (widget->window);
+    gdk_cairo_set_source_color (
+            ctx,
+            &(widget->style->bg[GTK_STATE_NORMAL]));
+    cairo_rectangle (
+            ctx,
+            0.0,
+            0.0,
+            (gdouble)widget->allocation.width,
+            (gdouble)widget->allocation.height);
+    cairo_fill (ctx);
 
     if (g_slist_length (chooser->priv->monitors) > 1)
     {


More information about the Xfce4-commits mailing list