Commit ec12326c authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

app/widgets/gimpnavigationview.c hardcode the colors to black and white.

2008-08-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpnavigationview.c
	* libgimpwidgets/gimpscrolledpreview.c: hardcode the colors to
	black and white. Using theme colors doesn't make sense here.


svn path=/trunk/; revision=26719
parent 943c4dba
2008-08-22 Sven Neumann <sven@gimp.org>
* app/widgets/gimpnavigationview.c
* libgimpwidgets/gimpscrolledpreview.c: hardcode the colors to
black and white. Using theme colors doesn't make sense here.
2008-08-22 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpscrolledpreview.[ch]: draw the navigation
......
......@@ -479,8 +479,8 @@ gimp_navigation_view_transform (GimpNavigationView *nav_view)
nav_view->p_x = RINT (nav_view->x * ratiox);
nav_view->p_y = RINT (nav_view->y * ratioy);
nav_view->p_width = RINT (nav_view->width * ratiox);
nav_view->p_height = RINT (nav_view->height * ratioy);
nav_view->p_width = ceil (nav_view->width * ratiox);
nav_view->p_height = ceil (nav_view->height * ratioy);
}
static void
......@@ -492,7 +492,6 @@ gimp_navigation_view_draw_marker (GimpNavigationView *nav_view,
if (view->renderer->viewable && nav_view->width && nav_view->height)
{
GtkWidget *widget = GTK_WIDGET (view);
GdkColor *color = &widget->style->fg[widget->state];
cairo_translate (cr, widget->allocation.x, widget->allocation.y);
cairo_rectangle (cr,
......@@ -502,11 +501,7 @@ gimp_navigation_view_draw_marker (GimpNavigationView *nav_view,
nav_view->p_x, nav_view->p_y,
nav_view->p_width, nav_view->p_height);
cairo_set_source_rgba (cr,
color->red / 65535.,
color->green / 65535.,
color->blue / 65535., 0.5);
cairo_set_source_rgba (cr, 0, 0, 0, 0.5);
cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD);
cairo_fill (cr);
......@@ -514,8 +509,7 @@ gimp_navigation_view_draw_marker (GimpNavigationView *nav_view,
nav_view->p_x, nav_view->p_y,
nav_view->p_width, nav_view->p_height);
gdk_cairo_set_source_color (cr, &widget->style->bg[widget->state]);
cairo_set_source_rgb (cr, 1, 1, 1);
cairo_set_line_width (cr, 2);
cairo_stroke (cr);
}
......
......@@ -708,7 +708,6 @@ gimp_scrolled_preview_nav_popup_expose (GtkWidget *widget,
GimpScrolledPreview *preview)
{
GtkAdjustment *adj;
GdkColor *color;
cairo_t *cr;
gdouble x, y;
gdouble w, h;
......@@ -741,19 +740,13 @@ gimp_scrolled_preview_nav_popup_expose (GtkWidget *widget,
cairo_rectangle (cr, x, y, w, h);
color = &widget->style->fg[widget->state];
cairo_set_source_rgba (cr,
color->red / 65535.,
color->green / 65535.,
color->blue / 65535., 0.5);
cairo_set_source_rgba (cr, 0, 0, 0, 0.5);
cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD);
cairo_fill (cr);
cairo_rectangle (cr, x, y, w, h);
gdk_cairo_set_source_color (cr, &widget->style->bg[widget->state]);
cairo_set_source_rgb (cr, 1, 1, 1);
cairo_set_line_width (cr, 2);
cairo_stroke (cr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment