update the whole image.
2004-04-05 Michael Natterer <mitch@gimp.org> * app/core/gimpimage.c (gimp_image_real_mode_changed): update the whole image. * app/display/gimpdisplay-handlers.c: removed obsolete "mode_changed" and "colormap_changed" handlers because GimpImage's default handlers already update the whole image.
This commit is contained in:
committed by
Michael Natterer
parent
082fbfbe49
commit
b80d76ab50
@ -1,3 +1,12 @@
|
||||
2004-04-05 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpimage.c (gimp_image_real_mode_changed): update the
|
||||
whole image.
|
||||
|
||||
* app/display/gimpdisplay-handlers.c: removed obsolete
|
||||
"mode_changed" and "colormap_changed" handlers because GimpImage's
|
||||
default handlers already update the whole image.
|
||||
|
||||
2004-04-05 Pedro Gimeno <pggimeno@wanadoo.es>
|
||||
|
||||
Sanitize rectangle and ellipse selection handling (bug #138237
|
||||
|
||||
@ -845,6 +845,7 @@ static void
|
||||
gimp_image_real_mode_changed (GimpImage *gimage)
|
||||
{
|
||||
gimp_image_projection_allocate (gimage);
|
||||
gimp_image_update (gimage, 0, 0, gimage->width, gimage->height);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@ -39,11 +39,6 @@ static void gimp_display_update_handler (GimpImage *gimage,
|
||||
gint w,
|
||||
gint h,
|
||||
GimpDisplay *gdisp);
|
||||
static void gimp_display_mode_changed_handler (GimpImage *gimage,
|
||||
GimpDisplay *gdisp);
|
||||
static void gimp_display_colormap_changed_handler (GimpImage *gimage,
|
||||
gint ncol,
|
||||
GimpDisplay *gdisp);
|
||||
static void gimp_display_size_changed_handler (GimpImage *gimage,
|
||||
GimpDisplay *gdisp);
|
||||
static void gimp_display_flush_handler (GimpImage *gimage,
|
||||
@ -76,12 +71,6 @@ gimp_display_connect (GimpDisplay *gdisp,
|
||||
g_signal_connect (gimage, "update",
|
||||
G_CALLBACK (gimp_display_update_handler),
|
||||
gdisp);
|
||||
g_signal_connect (gimage, "mode_changed",
|
||||
G_CALLBACK (gimp_display_mode_changed_handler),
|
||||
gdisp);
|
||||
g_signal_connect (gimage, "colormap_changed",
|
||||
G_CALLBACK (gimp_display_colormap_changed_handler),
|
||||
gdisp);
|
||||
g_signal_connect (gimage, "size_changed",
|
||||
G_CALLBACK (gimp_display_size_changed_handler),
|
||||
gdisp);
|
||||
@ -104,12 +93,6 @@ gimp_display_disconnect (GimpDisplay *gdisp)
|
||||
g_signal_handlers_disconnect_by_func (gdisp->gimage,
|
||||
gimp_display_size_changed_handler,
|
||||
gdisp);
|
||||
g_signal_handlers_disconnect_by_func (gdisp->gimage,
|
||||
gimp_display_colormap_changed_handler,
|
||||
gdisp);
|
||||
g_signal_handlers_disconnect_by_func (gdisp->gimage,
|
||||
gimp_display_mode_changed_handler,
|
||||
gdisp);
|
||||
g_signal_handlers_disconnect_by_func (gdisp->gimage,
|
||||
gimp_display_update_handler,
|
||||
gdisp);
|
||||
@ -145,30 +128,6 @@ gimp_display_update_handler (GimpImage *gimage,
|
||||
gimp_display_add_update_area (gdisp, x, y, w, h);
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_display_mode_changed_handler (GimpImage *gimage,
|
||||
GimpDisplay *gdisp)
|
||||
{
|
||||
gimp_display_add_update_area (gdisp,
|
||||
0, 0,
|
||||
gdisp->gimage->width,
|
||||
gdisp->gimage->height);
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_display_colormap_changed_handler (GimpImage *gimage,
|
||||
gint ncol,
|
||||
GimpDisplay *gdisp)
|
||||
{
|
||||
if (gimp_image_base_type (gdisp->gimage) == GIMP_INDEXED)
|
||||
{
|
||||
gimp_display_add_update_area (gdisp,
|
||||
0, 0,
|
||||
gdisp->gimage->width,
|
||||
gdisp->gimage->height);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_display_size_changed_handler (GimpImage *gimage,
|
||||
GimpDisplay *gdisp)
|
||||
|
||||
Reference in New Issue
Block a user