work around a canvas size bug by setting an empty text to the progressbar.

2003-01-08  Sven Neumann  <sven@gimp.org>

	* app/display/gimpstatusbar.c (gimp_statusbar_init): work around a
	canvas size bug by setting an empty text to the progressbar.
This commit is contained in:
Sven Neumann 2003-01-08 02:22:05 +00:00 committed by Sven Neumann
parent d6cae83513
commit ae6d4bf927
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-01-08 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.c (gimp_statusbar_init): work around a
canvas size bug by setting an empty text to the progressbar.
2003-01-07 Manish Singh <yosh@gimp.org>
* libgimpwidgets/Makefile.am: add gimpmemsizeentry.h to HEADERS

View file

@ -134,6 +134,18 @@ gimp_statusbar_init (GimpStatusbar *statusbar)
gtk_widget_set_sensitive (statusbar->cancelbutton, FALSE);
gtk_box_pack_start (box, statusbar->cancelbutton, FALSE, FALSE, 0);
gtk_widget_show (statusbar->cancelbutton);
/* Update the statusbar once to work around a resizing bug(?) in GTK+:
*
* The first update of the statusbar used to queue a resize which
* in term caused the canvas to be resized. That made it shrink by
* one pixel in height resulting in the last row not being displayed.
* Shrink-wrapping the display used to fix this reliably. With the
* next call the resize doesn't seem to happen any longer.
*/
gimp_statusbar_update (statusbar, 0, NULL);
}
static void