Commit 86a8d8d4 authored by Adrien Plazas's avatar Adrien Plazas Committed by Guido Gunther

dialog: Close when pressing the back button

Close the dialog instead of destroying it when clicking the back button.
This is the same behavior as when pressing escape or clicking the close
button and allows the dialog to be reused as some applications like to
do.

Fixes #70
parent b52d362e
......@@ -312,8 +312,7 @@ back_clicked_cb (GtkButton *back,
{
HdyDialog *self = HDY_DIALOG (user_data);
/* Close ourself */
gtk_widget_destroy (GTK_WIDGET (self));
g_signal_emit_by_name (self, "close", NULL);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment