Commit 48470a09 authored by David Odin's avatar David Odin
Browse files

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.
parent 0aef32eb
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
......
......@@ -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);
}
/* 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
......
......@@ -163,7 +163,7 @@ static CmParamsType mix =
FALSE,
FALSE,
CM_RED_CHANNEL,
NULL
TRUE
};
MAIN ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment