removed hack which strcmp()s the property name to figure the preview's

2004-09-28  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontainerbox.c (gimp_container_box_get_preview):
	removed hack which strcmp()s the property name to figure the
	preview's border_width and use the container view's
	preview_border_width instead.
This commit is contained in:
Michael Natterer 2004-09-28 11:24:48 +00:00 committed by Michael Natterer
parent 5cc2b3e5f8
commit 2b45c7a302
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2004-09-28 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontainerbox.c (gimp_container_box_get_preview):
removed hack which strcmp()s the property name to figure the
preview's border_width and use the container view's
preview_border_width instead.
2004-09-28 Sven Neumann <sven@gimp.org>
* app/tools/gimpimagemaptool.c (gimp_image_map_tool_settings_dialog):

View File

@ -231,13 +231,13 @@ gimp_container_box_get_preview (GimpDocked *docked,
prop_name = gimp_context_type_to_prop_name (container->children_type);
if (! strcmp (prop_name, "imagefile") ||
! strcmp (prop_name, "tool") ||
! strcmp (prop_name, "template"))
border_width = 0;
preview = gimp_prop_preview_new (G_OBJECT (context), prop_name, height);
GIMP_VIEW (preview)->renderer->size = -1;
gimp_container_view_get_preview_size (view, &border_width);
border_width = MIN (1, border_width);
gimp_view_renderer_set_size_full (GIMP_VIEW (preview)->renderer,
width, height, border_width);