[gimp/gtk3-port: 190/228] app: port GimpCellRendererDashes to GtkStyleContext
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 190/228] app: port GimpCellRendererDashes to GtkStyleContext
- Date: Fri, 4 May 2012 15:37:50 +0000 (UTC)
commit 89c6643edb4fd162c02f09e8c03ead7ab2e14e3a
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 6 19:05:34 2011 +0100
app: port GimpCellRendererDashes to GtkStyleContext
app/widgets/gimpcellrendererdashes.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpcellrendererdashes.c b/app/widgets/gimpcellrendererdashes.c
index 627b439..cf142f6 100644
--- a/app/widgets/gimpcellrendererdashes.c
+++ b/app/widgets/gimpcellrendererdashes.c
@@ -194,8 +194,9 @@ gimp_cell_renderer_dashes_render (GtkCellRenderer *cell,
GtkCellRendererState flags)
{
GimpCellRendererDashes *dashes = GIMP_CELL_RENDERER_DASHES (cell);
- GtkStyle *style = gtk_widget_get_style (widget);
+ GtkStyleContext *style = gtk_widget_get_style_context (widget);
GtkStateType state;
+ GdkRGBA color;
gint xpad, ypad;
gint width;
gint x, y;
@@ -219,7 +220,9 @@ gimp_cell_renderer_dashes_render (GtkCellRenderer *cell,
}
}
- gdk_cairo_set_source_color (cr, &style->text[state]);
+ gtk_style_context_get_color (style, state, &color);
+ gdk_cairo_set_source_rgba (cr, &color);
+
cairo_fill (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]