refcount fixups...

-Yosh
This commit is contained in:
Manish Singh 1998-02-22 10:06:01 +00:00
parent 126b6cecc1
commit 3905c6947b
7 changed files with 26 additions and 14 deletions

View File

@ -483,9 +483,11 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
static void

View File

@ -483,9 +483,11 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
static void

View File

@ -297,7 +297,7 @@ build_dialog(GImageType basetype,
gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) window_close_callback,
NULL);
dlg);
/* Action area - 'close' button only. */
@ -306,7 +306,7 @@ build_dialog(GImageType basetype,
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) window_close_callback,
NULL);
dlg);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->action_area),
button, TRUE, TRUE, 0);
gtk_widget_grab_default (button);
@ -883,6 +883,7 @@ static void
window_close_callback (GtkWidget *widget,
gpointer data)
{
gtk_widget_destroy(GTK_WIDGET(data));
gtk_main_quit();
}

View File

@ -297,7 +297,7 @@ build_dialog(GImageType basetype,
gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) window_close_callback,
NULL);
dlg);
/* Action area - 'close' button only. */
@ -306,7 +306,7 @@ build_dialog(GImageType basetype,
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) window_close_callback,
NULL);
dlg);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->action_area),
button, TRUE, TRUE, 0);
gtk_widget_grab_default (button);
@ -883,6 +883,7 @@ static void
window_close_callback (GtkWidget *widget,
gpointer data)
{
gtk_widget_destroy(GTK_WIDGET(data));
gtk_main_quit();
}

View File

@ -483,9 +483,11 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
static void

View File

@ -483,9 +483,11 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
static void

View File

@ -483,9 +483,11 @@ dialog_close_callback (GtkWidget *widget,
/* we are called by another application : just kill the dialog box */
gtk_widget_hide(dbbrowser->dlg);
gtk_widget_destroy(dbbrowser->dlg);
} else
} else {
/* we are in the plug_in : kill the gtk application */
gtk_widget_destroy(dbbrowser->dlg);
gtk_main_quit ();
}
}
static void