Commit a4730eda authored by BST 1999 Andy Thomas's avatar BST 1999 Andy Thomas Committed by Andy Thomas
Browse files

app/gdisplay.c app/paths_dialog.c app/paths_dialog.h

Sat May 15 00:06:06 BST 1999 Andy Thomas <alt@gimp.org>

	* app/gdisplay.c
	* app/paths_dialog.c
	* app/paths_dialog.h

	Fixed problem where paths preview not resized correctly when
	image was resized.
parent 5dd060bd
Sat May 15 00:06:06 BST 1999 Andy Thomas <alt@gimp.org>
* app/gdisplay.c
* app/paths_dialog.c
* app/paths_dialog.h
Fixed problem where paths preview not resized correctly when
image was resized.
1999-05-13 Jay Cox <jaycox@earthlink.net>
* app/pencil.c: use the new color picking feature of paint_core.
......
......@@ -37,6 +37,9 @@
#include "interface.h"
#include "layers_dialog.h"
#include "menus.h"
#include "draw_core.h"
#include "bezier_selectP.h"
#include "paths_dialog.h"
#include "plug_in.h"
#include "scale.h"
#include "scroll.h"
......@@ -2064,6 +2067,8 @@ gdisplays_flush_whenever (gboolean now)
layers_dialog_flush ();
/* for convenience, we call the channels dialog flush here */
channels_dialog_flush ();
/* for convenience, we call the paths dialog flush here */
paths_dialog_flush();
flushing = FALSE;
}
......
......@@ -37,6 +37,9 @@
#include "interface.h"
#include "layers_dialog.h"
#include "menus.h"
#include "draw_core.h"
#include "bezier_selectP.h"
#include "paths_dialog.h"
#include "plug_in.h"
#include "scale.h"
#include "scroll.h"
......@@ -2064,6 +2067,8 @@ gdisplays_flush_whenever (gboolean now)
layers_dialog_flush ();
/* for convenience, we call the channels dialog flush here */
channels_dialog_flush ();
/* for convenience, we call the paths dialog flush here */
paths_dialog_flush();
flushing = FALSE;
}
......
......@@ -37,6 +37,9 @@
#include "interface.h"
#include "layers_dialog.h"
#include "menus.h"
#include "draw_core.h"
#include "bezier_selectP.h"
#include "paths_dialog.h"
#include "plug_in.h"
#include "scale.h"
#include "scroll.h"
......@@ -2064,6 +2067,8 @@ gdisplays_flush_whenever (gboolean now)
layers_dialog_flush ();
/* for convenience, we call the channels dialog flush here */
channels_dialog_flush ();
/* for convenience, we call the paths dialog flush here */
paths_dialog_flush();
flushing = FALSE;
}
......
......@@ -1852,6 +1852,26 @@ paths_dialog_edit_point_callback (GtkWidget * widget, gpointer udata)
bezier_select_mode(EXTEND_EDIT);
}
void
paths_dialog_flush()
{
GImage *gimage;
if (!paths_dialog)
return;
if (!(gimage = paths_dialog->gimage))
return;
gimage = paths_dialog->gimage;
if ((gimage->width != paths_dialog->gimage_width) ||
(gimage->height != paths_dialog->gimage_height))
{
paths_dialog->gimage = NULL;
paths_dialog_update(gimage);
}
}
void
paths_first_button_press(BezierSelect *bezier_sel,GDisplay * gdisp)
......
......@@ -27,5 +27,6 @@ void paths_first_button_press(BezierSelect *,GDisplay *);
void paths_new_bezier_select_tool(void);
PATHP paths_get_bzpaths(void);
void paths_set_bzpaths(GImage*,PATHP);
void paths_dialog_flush(void);
#endif /* __PATHS_DIALOG_H__ */
......@@ -1852,6 +1852,26 @@ paths_dialog_edit_point_callback (GtkWidget * widget, gpointer udata)
bezier_select_mode(EXTEND_EDIT);
}
void
paths_dialog_flush()
{
GImage *gimage;
if (!paths_dialog)
return;
if (!(gimage = paths_dialog->gimage))
return;
gimage = paths_dialog->gimage;
if ((gimage->width != paths_dialog->gimage_width) ||
(gimage->height != paths_dialog->gimage_height))
{
paths_dialog->gimage = NULL;
paths_dialog_update(gimage);
}
}
void
paths_first_button_press(BezierSelect *bezier_sel,GDisplay * gdisp)
......
......@@ -27,5 +27,6 @@ void paths_first_button_press(BezierSelect *,GDisplay *);
void paths_new_bezier_select_tool(void);
PATHP paths_get_bzpaths(void);
void paths_set_bzpaths(GImage*,PATHP);
void paths_dialog_flush(void);
#endif /* __PATHS_DIALOG_H__ */
Supports Markdown
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