mirror of https://github.com/GNOME/gimp.git
If the current gdisp->ID does not match the ID of the gdisp_ptr in the
Wed Apr 01 03:40:15 EST 1998 Matthew Wilson <msw@gimp.org> * app/disp_callbacks.c: If the current gdisp->ID does not match the ID of the gdisp_ptr in the active_tool, restart it. --Matt "I need sleep" Wilson
This commit is contained in:
parent
beb9573a9b
commit
4553b3c845
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Apr 01 03:40:15 EST 1998 Matthew Wilson <msw@gimp.org>
|
||||||
|
|
||||||
|
* app/disp_callbacks.c: If the current gdisp->ID does not match
|
||||||
|
the ID of the gdisp_ptr in the active_tool, restart it.
|
||||||
|
|
||||||
Tue Mar 31 03:10:12 EST 1998 Matthew Wilson <msw@gimp.org>
|
Tue Mar 31 03:10:12 EST 1998 Matthew Wilson <msw@gimp.org>
|
||||||
|
|
||||||
* app/iscissors.c: Set tool->preserve to TRUE in tools_new_iscissors.
|
* app/iscissors.c: Set tool->preserve to TRUE in tools_new_iscissors.
|
||||||
|
|
|
@ -66,7 +66,7 @@ gint
|
||||||
gdisplay_canvas_events (GtkWidget *canvas,
|
gdisplay_canvas_events (GtkWidget *canvas,
|
||||||
GdkEvent *event)
|
GdkEvent *event)
|
||||||
{
|
{
|
||||||
GDisplay *gdisp;
|
GDisplay *gdisp, *tool_gdisp;
|
||||||
GdkEventExpose *eevent;
|
GdkEventExpose *eevent;
|
||||||
GdkEventMotion *mevent;
|
GdkEventMotion *mevent;
|
||||||
GdkEventButton *bevent;
|
GdkEventButton *bevent;
|
||||||
|
@ -147,6 +147,11 @@ gdisplay_canvas_events (GtkWidget *canvas,
|
||||||
bevent->x = tx;
|
bevent->x = tx;
|
||||||
bevent->y = ty;
|
bevent->y = ty;
|
||||||
}
|
}
|
||||||
|
/* Reset the current tool if we're changing displays... */
|
||||||
|
tool_gdisp = active_tool->gdisp_ptr;
|
||||||
|
if (tool_gdisp)
|
||||||
|
if (tool_gdisp->ID != gdisp->ID)
|
||||||
|
tools_select(active_tool->type);
|
||||||
(* active_tool->button_press_func) (active_tool, bevent, gdisp);
|
(* active_tool->button_press_func) (active_tool, bevent, gdisp);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -66,7 +66,7 @@ gint
|
||||||
gdisplay_canvas_events (GtkWidget *canvas,
|
gdisplay_canvas_events (GtkWidget *canvas,
|
||||||
GdkEvent *event)
|
GdkEvent *event)
|
||||||
{
|
{
|
||||||
GDisplay *gdisp;
|
GDisplay *gdisp, *tool_gdisp;
|
||||||
GdkEventExpose *eevent;
|
GdkEventExpose *eevent;
|
||||||
GdkEventMotion *mevent;
|
GdkEventMotion *mevent;
|
||||||
GdkEventButton *bevent;
|
GdkEventButton *bevent;
|
||||||
|
@ -147,6 +147,11 @@ gdisplay_canvas_events (GtkWidget *canvas,
|
||||||
bevent->x = tx;
|
bevent->x = tx;
|
||||||
bevent->y = ty;
|
bevent->y = ty;
|
||||||
}
|
}
|
||||||
|
/* Reset the current tool if we're changing displays... */
|
||||||
|
tool_gdisp = active_tool->gdisp_ptr;
|
||||||
|
if (tool_gdisp)
|
||||||
|
if (tool_gdisp->ID != gdisp->ID)
|
||||||
|
tools_select(active_tool->type);
|
||||||
(* active_tool->button_press_func) (active_tool, bevent, gdisp);
|
(* active_tool->button_press_func) (active_tool, bevent, gdisp);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -66,7 +66,7 @@ gint
|
||||||
gdisplay_canvas_events (GtkWidget *canvas,
|
gdisplay_canvas_events (GtkWidget *canvas,
|
||||||
GdkEvent *event)
|
GdkEvent *event)
|
||||||
{
|
{
|
||||||
GDisplay *gdisp;
|
GDisplay *gdisp, *tool_gdisp;
|
||||||
GdkEventExpose *eevent;
|
GdkEventExpose *eevent;
|
||||||
GdkEventMotion *mevent;
|
GdkEventMotion *mevent;
|
||||||
GdkEventButton *bevent;
|
GdkEventButton *bevent;
|
||||||
|
@ -147,6 +147,11 @@ gdisplay_canvas_events (GtkWidget *canvas,
|
||||||
bevent->x = tx;
|
bevent->x = tx;
|
||||||
bevent->y = ty;
|
bevent->y = ty;
|
||||||
}
|
}
|
||||||
|
/* Reset the current tool if we're changing displays... */
|
||||||
|
tool_gdisp = active_tool->gdisp_ptr;
|
||||||
|
if (tool_gdisp)
|
||||||
|
if (tool_gdisp->ID != gdisp->ID)
|
||||||
|
tools_select(active_tool->type);
|
||||||
(* active_tool->button_press_func) (active_tool, bevent, gdisp);
|
(* active_tool->button_press_func) (active_tool, bevent, gdisp);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue