make sure the drop label's opacity scales with its size so we don't end up

2008-03-21  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): make sure
	the drop label's opacity scales with its size so we don't end up
	with tiny text at 10% opacity.


svn path=/trunk/; revision=25149
This commit is contained in:
Michael Natterer 2008-03-21 11:31:47 +00:00 committed by Michael Natterer
parent 3ed8ea38cd
commit deefaa0e49
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-03-21 Michael Natterer <mitch@gimp.org>
* app/display/gimpcanvas.c (gimp_canvas_draw_drop_zone): make sure
the drop label's opacity scales with its size so we don't end up
with tiny text at 10% opacity.
2008-03-20 Michael Natterer <mitch@gimp.org>
* app/gui/gui-vtable.c (gui_display_create): add back code that

View file

@ -842,6 +842,7 @@ gimp_canvas_draw_drop_zone (GimpCanvas *canvas,
gint width;
gint height;
gdouble factor;
gdouble opacity;
if (! canvas->drop_zone_layout)
{
@ -861,11 +862,13 @@ gimp_canvas_draw_drop_zone (GimpCanvas *canvas,
(widget->allocation.width / factor - width) / 2.0,
(widget->allocation.height / factor - height) / 2.0);
opacity = CLAMP (1.0 / factor, 0.10, 1.0);
cairo_set_source_rgba (cr,
color->red / 65535.0,
color->green / 65535.0,
color->blue / 65535.0,
0.2);
opacity);
pango_cairo_show_layout (cr, canvas->drop_zone_layout);
}