fixed the dialog destroy handling in the bezier extends dialog.

Tue Dec  1 22:12:08 CST 1998 Larry Ewing  <lewing@gimp.org>

	* app/bezier_select.c: fixed the dialog destroy handling in the
	bezier extends dialog.
This commit is contained in:
CST 1998 Larry Ewing 1998-12-02 04:15:48 +00:00 committed by Larry Ewing
parent 66ce5eea04
commit ee23120c06
3 changed files with 31 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 1 22:12:08 CST 1998 Larry Ewing <lewing@gimp.org>
* app/bezier_select.c: fixed the dialog destroy handling in the
bezier extends dialog.
Wed Dec 2 02:40:34 MET 1998 Sven Neumann <sven@gimp.org>
* app/drawable_cmds.[ch]

View File

@ -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,

View File

@ -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,