About dialog: close when the close button is pressed (#270)
Fixes #242.
This commit is contained in:
parent
eff22c2bfc
commit
15da090d15
|
@ -22,6 +22,13 @@ public class Tootle.Dialogs.About : AboutDialog {
|
|||
artists = Build.get_artists ();
|
||||
translator_credits = Build.TRANSLATOR != " " ? Build.TRANSLATOR : null;
|
||||
|
||||
response.connect ((response_id) => {
|
||||
if (response_id == Gtk.ResponseType.CANCEL ||
|
||||
response_id == Gtk.ResponseType.DELETE_EVENT) {
|
||||
hide_on_delete ();
|
||||
}
|
||||
});
|
||||
|
||||
present ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue