Destroy and set parent of Preferences from Diagnostic dialog

This commit is contained in:
Christian Dywan 2009-01-11 20:51:18 +01:00
parent 6753a9ade3
commit 88474b45fb

View file

@ -1645,8 +1645,10 @@ static void
button_modify_preferences_clicked_cb (GtkWidget* button,
MidoriWebSettings* settings)
{
GtkWidget* dialog = midori_preferences_new (NULL, settings);
gtk_dialog_run (GTK_DIALOG (dialog));
GtkWidget* dialog = midori_preferences_new (
GTK_WINDOW (gtk_widget_get_toplevel (button)), settings);
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_DELETE_EVENT)
gtk_widget_destroy (dialog);
}
static void