app/Makefile.am A bad hack on top of another hack: The GtkHWrapBox

2001-02-06  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* app/gimpconstrainedhwrapbox.[ch]: A bad hack on top of another
	hack: The GtkHWrapBox "size_request" method _always_ wants a
	maximal requisition height, which it of course gets from a
	container like the scrolled window, yielding in wrong vscrollbar
	calculation.

	* app/gimpbrush.c: create a nice preview with scale and pipe
	indicators.

	* app/gimpcontainergridview.[ch]: use the GimpConstrainderHWrapBox.

	* app/commands.c
	* app/gimpcontainerlistview.c
	* app/gimppreview.c: cleanup, fixed a crash in the preview idle
	rendering function.
This commit is contained in:
Michael Natterer
2001-02-06 15:57:07 +00:00
committed by Michael Natterer
parent 29a3407889
commit e65e4e3253
24 changed files with 1119 additions and 87 deletions

View File

@ -144,6 +144,11 @@ gimp_preview_new (GimpViewable *viewable,
GTK_SIGNAL_FUNC (gimp_preview_paint),
GTK_OBJECT (preview));
gtk_signal_connect_while_alive (GTK_OBJECT (viewable), "destroy",
GTK_SIGNAL_FUNC (gtk_widget_destroyed),
&preview->viewable,
GTK_OBJECT (preview));
gtk_preview_size (GTK_PREVIEW (preview), width, height);
return GTK_WIDGET (preview);
@ -194,6 +199,9 @@ gimp_preview_idle_paint (GimpPreview *preview)
preview->idle_id = 0;
if (! preview->viewable)
return FALSE;
temp_buf = gimp_viewable_preview_new (preview->viewable,
GTK_WIDGET (preview)->allocation.width,
GTK_WIDGET (preview)->allocation.height);