[nautilus/wip/gbsneto/search-popover: 9/9] eel-canvas
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gbsneto/search-popover: 9/9] eel-canvas
- Date: Mon, 12 Oct 2015 16:30:59 +0000 (UTC)
commit 6b6a00fb60fa91ec494d0e940585eb5b5a1ad387
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Oct 7 10:16:59 2015 -0300
eel-canvas
eel/eel-canvas.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 0040a43..01d5cac 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -2893,7 +2893,6 @@ eel_canvas_draw_background (EelCanvas *canvas,
{
cairo_rectangle_int_t rect;
GtkStyleContext *style_context;
- GdkRGBA color;
if (!gdk_cairo_get_clip_rectangle (cr, &rect))
return;
@@ -2901,10 +2900,7 @@ eel_canvas_draw_background (EelCanvas *canvas,
cairo_save (cr);
/* By default, we use the style background. */
style_context = gtk_widget_get_style_context (GTK_WIDGET (canvas));
- gtk_style_context_get_background_color (style_context, GTK_STATE_FLAG_NORMAL, &color);
- gdk_cairo_set_source_rgba (cr, &color);
- gdk_cairo_rectangle (cr, &rect);
- cairo_fill (cr);
+ gtk_render_background (style_context, cr, rect.x, rect.y, rect.width, rect.height);
cairo_restore (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]