Commit 11d9a3ee authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

push a context for GFig.

2004-11-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/gfig/gfig.c (run): push a context for GFig.
parent 91e5d263
2004-11-28 Sven Neumann <sven@gimp.org>
* plug-ins/gfig/gfig.c (run): push a context for GFig.
2004-11-28 DindinX <dindinx@gimp.org>
 
* plug-ins/gfig/gfig-dialog.c
* plug-ins/gfig/gfig-dialog.h
plug-ins/gfig/gfig-dobject.c: renamed undo_water_mark to undo_level.
Fixed the style handling when clearing the whole thing and undoing in
some very particular cases. The undo part should certainly be redone
to some extent.
* plug-ins/gfig/gfig-dialog.[ch]
* plug-ins/gfig/gfig-dobject.c: renamed undo_water_mark to undo_level.
Fixed the style handling when clearing the whole thing and undoing in
some very particular cases. The undo part should certainly be redone
to some extent.
 
Btw, this is the revision 1.10000 of the ChangeLog, yeah!
Btw, this is the revision 1.10000 of the ChangeLog, yeah!
 
2004-11-28 Bill Skaggs <weskaggs@primate.ucdavis.edu>
 
......@@ -28,7 +31,7 @@
* plug-ins/gfig/gfig-dialog.[ch]
* plug-ins/gfig/gfig-dobject.c: moved Undo and Clear to the Edit
menu. Added a utility function to set the sensitivity of an action
by name. Cleaned up action callback.
by name. Cleaned up action callbacks.
 
* plug-ins/gfig/gfig-style.c: minor cleanup.
 
......
......@@ -155,7 +155,9 @@ run (const gchar *name,
gfig_context = g_new (GFigContext, 1);
gfig_context->show_background = TRUE;
gfig_context->selected_obj = NULL;
run_mode = param[0].data.d_int32;
gfig_context->image_id = param[1].data.d_image;
gfig_context->drawable_id = param[2].data.d_drawable;
......@@ -167,6 +169,8 @@ run (const gchar *name,
gimp_image_undo_group_start (gfig_context->image_id);
gimp_context_push ();
drawable = gimp_drawable_get (param[2].data.d_drawable);
/* TMP Hack - clear any selections */
......@@ -213,6 +217,7 @@ run (const gchar *name,
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:
case GIMP_RUN_WITH_LAST_VALS:
/*gimp_get_data ("plug_in_gfig", &selvals);*/
if (! gfig_dialog ())
{
......@@ -227,14 +232,12 @@ run (const gchar *name,
status = GIMP_PDB_CALLING_ERROR;
break;
case GIMP_RUN_WITH_LAST_VALS:
/*gimp_get_data ("plug_in_gfig", &selvals);*/
break;
default:
break;
}
gimp_context_pop ();
gimp_image_undo_group_end (gfig_context->image_id);
if (run_mode != GIMP_RUN_NONINTERACTIVE)
......
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