[gimp/gimp-2-10] app: fix drawing the focus around the selected color in GimpPaletteView
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: fix drawing the focus around the selected color in GimpPaletteView
- Date: Mon, 18 Jun 2018 17:20:21 +0000 (UTC)
commit 4cc6f18cc932c0f6e64408cdbf88f1a8141e59a4
Author: Michael Natterer <mitch gimp org>
Date: Mon Jun 18 19:18:34 2018 +0200
app: fix drawing the focus around the selected color in GimpPaletteView
The grid lines are always black, so always draw a black/white focus
line and ignore theme colors.
app/widgets/gimppaletteview.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimppaletteview.c b/app/widgets/gimppaletteview.c
index 9858b2bc0b..5736f4393d 100644
--- a/app/widgets/gimppaletteview.c
+++ b/app/widgets/gimppaletteview.c
@@ -174,7 +174,6 @@ gimp_palette_view_expose (GtkWidget *widget,
if (view->renderer->viewable && pal_view->selected)
{
GimpViewRendererPalette *renderer;
- GtkStyle *style = gtk_widget_get_style (widget);
GtkAllocation allocation;
cairo_t *cr;
gint row, col;
@@ -199,12 +198,12 @@ gimp_palette_view_expose (GtkWidget *widget,
renderer->cell_height);
cairo_set_line_width (cr, 1.0);
- gdk_cairo_set_source_color (cr, &style->fg[GTK_STATE_SELECTED]);
+ cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 1.0);
cairo_stroke_preserve (cr);
if (gimp_cairo_set_focus_line_pattern (cr, widget))
{
- gdk_cairo_set_source_color (cr, &style->fg[GTK_STATE_NORMAL]);
+ cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 1.0);
cairo_stroke (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]