Destroy and set parent of Preferences from Diagnostic dialog
This commit is contained in:
parent
6753a9ade3
commit
88474b45fb
1 changed files with 4 additions and 2 deletions
|
@ -1645,8 +1645,10 @@ static void
|
||||||
button_modify_preferences_clicked_cb (GtkWidget* button,
|
button_modify_preferences_clicked_cb (GtkWidget* button,
|
||||||
MidoriWebSettings* settings)
|
MidoriWebSettings* settings)
|
||||||
{
|
{
|
||||||
GtkWidget* dialog = midori_preferences_new (NULL, settings);
|
GtkWidget* dialog = midori_preferences_new (
|
||||||
gtk_dialog_run (GTK_DIALOG (dialog));
|
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
|
static void
|
||||||
|
|
Loading…
Reference in a new issue