[gtk+] Make GtkDrawingArea use GtkStyleContext
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make GtkDrawingArea use GtkStyleContext
- Date: Tue, 4 Jan 2011 02:20:19 +0000 (UTC)
commit c180edd80c2c11cc91b213144c35db7f8ed9a9b5
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jan 4 02:26:24 2011 +0100
Make GtkDrawingArea use GtkStyleContext
gtk/gtkdrawingarea.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkdrawingarea.c b/gtk/gtkdrawingarea.c
index ffa7163..544d23c 100644
--- a/gtk/gtkdrawingarea.c
+++ b/gtk/gtkdrawingarea.c
@@ -92,8 +92,8 @@ gtk_drawing_area_realize (GtkWidget *widget)
gdk_window_set_user_data (window, darea);
gtk_widget_set_window (widget, window);
- gtk_widget_style_attach (widget);
- gtk_style_set_background (gtk_widget_get_style (widget), window, GTK_STATE_NORMAL);
+ gtk_style_context_set_background (gtk_widget_get_style_context (widget),
+ window);
}
gtk_drawing_area_send_configure (GTK_DRAWING_AREA (widget));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]