add gimp_display_empty()/fill() which turns it into an empty display and

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

	* app/display/gimpdisplay.[ch]: add gimp_display_empty()/fill()
	which turns it into an empty display and back.

	* app/display/gimpdisplayshell.[ch]: add same api here.

	* app/display/gimpdisplayshell-close.c
	* app/gui/gui-vtable.c: use the new functions instead of having
	the code here.

	* app/display/gimpdisplayshell-selection.c
	(gimp_display_shell_selection_control): stop the timeout and free
	the segments when this function is called on an empty display.


svn path=/trunk/; revision=25124
This commit is contained in:
Michael Natterer
2008-03-19 16:15:50 +00:00
committed by Michael Natterer
parent 3899de098f
commit a098b12f55
8 changed files with 103 additions and 34 deletions

View File

@ -74,6 +74,12 @@ GimpDisplay * gimp_display_get_by_ID (Gimp *gimp,
void gimp_display_set_image (GimpDisplay *display,
GimpImage *image);
void gimp_display_empty (GimpDisplay *display);
void gimp_display_fill (GimpDisplay *display,
GimpImage *image,
GimpUnit unit,
gdouble scale);
void gimp_display_update_area (GimpDisplay *display,
gboolean now,
gint x,