really use the second parameter of gimp_aspect_preview_new (), so plug-ins

* libgimp/gimpaspectpreview.c: really use the second parameter of
  gimp_aspect_preview_new (), so plug-ins can now really remember the
  state of the preview between invocations.

* libgimpwidgets/gimpscrolledpreview.c: fix a little typo

* plug-ins/common/channel_mixer.c: fix a warning by using TRUE for a
  boolean value (initial state of the preview) instead of a weird NULL.
This commit is contained in:
David Odin 2004-10-27 11:38:15 +00:00
parent 0aef32eb90
commit 48470a093f
4 changed files with 31 additions and 2 deletions

View file

@ -1,3 +1,14 @@
2004-10-27 DindinX <dindinx@gimp.org>
* libgimp/gimpaspectpreview.c: really use the second parameter of
gimp_aspect_preview_new (), so plug-ins can now really remember the
state of the preview between invocations.
* libgimpwidgets/gimpscrolledpreview.c: fix a little typo
* plug-ins/common/channel_mixer.c: fix a warning by using TRUE for a
boolean value (initial state of the preview) instead of a weird NULL.
2004-10-27 Michael Natterer <mitch@gimp.org>
* modules/controller_linux_input.c

View file

@ -193,6 +193,14 @@ gimp_aspect_preview_draw_buffer (GimpPreview *preview,
}
}
static void
gimp_aspect_preview_notify_update (GimpPreview *preview,
GParamSpec *pspec,
gboolean *toggle)
{
*toggle = gimp_preview_get_update (preview);
}
GtkWidget *
gimp_aspect_preview_new (GimpDrawable *drawable,
gboolean *toggle)
@ -224,5 +232,15 @@ gimp_aspect_preview_new (GimpDrawable *drawable,
"ratio", (gdouble) width / (gdouble) height,
NULL);
if (toggle)
{
gimp_preview_set_update (GIMP_PREVIEW (preview), *toggle);
g_signal_connect (preview, "notify::update",
G_CALLBACK (gimp_aspect_preview_notify_update),
toggle);
}
return GTK_WIDGET (preview);
}

View file

@ -1,7 +1,7 @@
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* gimppreview.c
* gimpscrolledpreview.c
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View file

@ -163,7 +163,7 @@ static CmParamsType mix =
FALSE,
FALSE,
CM_RED_CHANNEL,
NULL
TRUE
};
MAIN ()