[gnome-power-manager/gtk-style-context] Don't use gtk_paint api



commit 60da94b88fe1d0ae75a2102195b396e7c110de16
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Nov 12 17:14:50 2010 -0500

    Don't use gtk_paint api
    
    Replace a gtk_paint_shadow call in the OSD window code by
    gtk_render_frame.  This will probably need some tweaks to look
    right.

 src/gsd-osd-window.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/gsd-osd-window.c b/src/gsd-osd-window.c
index 24182ad..8634ee4 100644
--- a/src/gsd-osd-window.c
+++ b/src/gsd-osd-window.c
@@ -314,16 +314,8 @@ draw_when_not_composited (GtkWidget *widget, cairo_t *cr)
         width = gtk_widget_get_allocated_width (widget);
         height = gtk_widget_get_allocated_width (widget);
 
-        gtk_paint_shadow (gtk_widget_get_style (widget),
-                          cr,
-                          gtk_widget_get_state (widget),
-                          GTK_SHADOW_OUT,
-                          widget,
-                          NULL, /* NULL detail -> themes should use the GsdOsdWindow widget name, probably */
-                          0,
-                          0,
-                          width,
-                          height);
+        gtk_render_frame (gtk_widget_get_style_context (widget),
+                          cr, 0, 0, width, height);
 }
 
 static gboolean



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