diff --git a/ChangeLog b/ChangeLog index 295b4d9150..84bcc53bf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Dec 1 22:12:08 CST 1998 Larry Ewing + + * app/bezier_select.c: fixed the dialog destroy handling in the + bezier extends dialog. + Wed Dec 2 02:40:34 MET 1998 Sven Neumann * app/drawable_cmds.[ch] diff --git a/app/bezier_select.c b/app/bezier_select.c index a7ef530744..4c94385585 100644 --- a/app/bezier_select.c +++ b/app/bezier_select.c @@ -2140,6 +2140,15 @@ void create_choice(GtkWidget *box) gtk_widget_show (option_menu); } +static gint +bezier_extends_delete_callback (GtkWidget *dialog) +{ + dialog_open = 2; + gtk_widget_hide (dialog); + + return TRUE; +} + static void bezier_named_buffer_proc (GDisplay *gdisp) { int i; @@ -2170,6 +2179,10 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) curPndlg = pn_dlg; + gtk_signal_connect (GTK_OBJECT (pn_dlg->shell), "delete_event", + GTK_SIGNAL_FUNC (bezier_extends_delete_callback), + NULL); + gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), _("Paste Bezier Named Buffer")); gtk_window_position (GTK_WINDOW (pn_dlg->shell), GTK_WIN_POS_MOUSE); @@ -2210,7 +2223,6 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) gtk_widget_show (pn_dlg->shell); } - static int add_point_on_segment (BezierSelect *bezier_sel, BezierPoint *pt, diff --git a/app/tools/bezier_select.c b/app/tools/bezier_select.c index a7ef530744..4c94385585 100644 --- a/app/tools/bezier_select.c +++ b/app/tools/bezier_select.c @@ -2140,6 +2140,15 @@ void create_choice(GtkWidget *box) gtk_widget_show (option_menu); } +static gint +bezier_extends_delete_callback (GtkWidget *dialog) +{ + dialog_open = 2; + gtk_widget_hide (dialog); + + return TRUE; +} + static void bezier_named_buffer_proc (GDisplay *gdisp) { int i; @@ -2170,6 +2179,10 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) curPndlg = pn_dlg; + gtk_signal_connect (GTK_OBJECT (pn_dlg->shell), "delete_event", + GTK_SIGNAL_FUNC (bezier_extends_delete_callback), + NULL); + gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), _("Paste Bezier Named Buffer")); gtk_window_position (GTK_WINDOW (pn_dlg->shell), GTK_WIN_POS_MOUSE); @@ -2210,7 +2223,6 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) gtk_widget_show (pn_dlg->shell); } - static int add_point_on_segment (BezierSelect *bezier_sel, BezierPoint *pt,