From f37f8167f2a41fd8af59e350b6c5a59a865f7d2d Mon Sep 17 00:00:00 2001 From: CST 1998 Larry Ewing Date: Thu, 12 Mar 1998 00:09:22 +0000 Subject: [PATCH] added checks to recreate the active tool if need be. Wed Mar 11 18:03:38 CST 1998 Larry Ewing * app/disp_callbacks.c: added checks to recreate the active tool if need be. --- ChangeLog | 5 +++++ app/disp_callbacks.c | 6 ++++++ app/display/gimpdisplay-callbacks.c | 6 ++++++ app/display/gimpdisplayshell-callbacks.c | 6 ++++++ 4 files changed, 23 insertions(+) diff --git a/ChangeLog b/ChangeLog index 01ad576ba2..18247206ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 11 18:03:38 CST 1998 Larry Ewing + + * app/disp_callbacks.c: added checks to recreate the active tool + if need be. + Wed Mar 11 02:49:14 PST 1998 Manish Singh * app/fileops.c: no need to hide the help button for fileops, diff --git a/app/disp_callbacks.c b/app/disp_callbacks.c index 1665925011..a5623e637a 100644 --- a/app/disp_callbacks.c +++ b/app/disp_callbacks.c @@ -340,6 +340,9 @@ gdisplay_hruler_button_press (GtkWidget *widget, { GDisplay *gdisp; + if (!active_tool) + active_tool_control (RECREATE, gdisp); + if (event->button == 1) { gdisp = data; @@ -358,6 +361,9 @@ gdisplay_vruler_button_press (GtkWidget *widget, { GDisplay *gdisp; + if (!active_tool) + active_tool_control (RECREATE, gdisp); + if (event->button == 1) { gdisp = data; diff --git a/app/display/gimpdisplay-callbacks.c b/app/display/gimpdisplay-callbacks.c index 1665925011..a5623e637a 100644 --- a/app/display/gimpdisplay-callbacks.c +++ b/app/display/gimpdisplay-callbacks.c @@ -340,6 +340,9 @@ gdisplay_hruler_button_press (GtkWidget *widget, { GDisplay *gdisp; + if (!active_tool) + active_tool_control (RECREATE, gdisp); + if (event->button == 1) { gdisp = data; @@ -358,6 +361,9 @@ gdisplay_vruler_button_press (GtkWidget *widget, { GDisplay *gdisp; + if (!active_tool) + active_tool_control (RECREATE, gdisp); + if (event->button == 1) { gdisp = data; diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c index 1665925011..a5623e637a 100644 --- a/app/display/gimpdisplayshell-callbacks.c +++ b/app/display/gimpdisplayshell-callbacks.c @@ -340,6 +340,9 @@ gdisplay_hruler_button_press (GtkWidget *widget, { GDisplay *gdisp; + if (!active_tool) + active_tool_control (RECREATE, gdisp); + if (event->button == 1) { gdisp = data; @@ -358,6 +361,9 @@ gdisplay_vruler_button_press (GtkWidget *widget, { GDisplay *gdisp; + if (!active_tool) + active_tool_control (RECREATE, gdisp); + if (event->button == 1) { gdisp = data;