[gtk+/wip/unfocused-fixes] scrolledwindow: Render the background so that it can be styled
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/unfocused-fixes] scrolledwindow: Render the background so that it can be styled
- Date: Thu, 22 Dec 2011 14:50:58 +0000 (UTC)
commit b2977ef68d7e73ad12efe4e48e53778fdfc7db94
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Dec 22 14:49:50 2011 +0000
scrolledwindow: Render the background so that it can be styled
gtk/gtkscrolledwindow.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 12f3e67..a86ffd9 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -1200,15 +1200,19 @@ gtk_scrolled_window_draw (GtkWidget *widget,
{
GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget);
GtkScrolledWindowPrivate *priv = scrolled_window->priv;
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (widget);
+
+ gtk_render_background (context, cr, 0, 0,
+ gtk_widget_get_allocated_width (widget),
+ gtk_widget_get_allocated_height (widget));
if (priv->shadow_type != GTK_SHADOW_NONE)
{
GtkAllocation relative_allocation;
- GtkStyleContext *context;
gboolean scrollbars_within_bevel;
- context = gtk_widget_get_style_context (widget);
-
gtk_style_context_save (context);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_FRAME);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]