[libgnome-games-support: 9/13] context: Correctly destroy dialog on response
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-games-support: 9/13] context: Correctly destroy dialog on response
- Date: Fri, 11 Feb 2022 16:16:47 +0000 (UTC)
commit 1db1ef6799c224247e540e32c023df85bed6d012
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Tue Feb 8 20:18:44 2022 +0100
context: Correctly destroy dialog on response
Previous method didn't destroy the dialog.
games/scores/context.vala | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/games/scores/context.vala b/games/scores/context.vala
index 3fb9e68..6d7df7c 100644
--- a/games/scores/context.vala
+++ b/games/scores/context.vala
@@ -359,13 +359,10 @@ public class Context : Object
requires (game_window != null)
{
var dialog = new Dialog (this, category_type, style, new_high_score, current_category, game_window,
icon_name);
+ dialog.response.connect ((dialog, response) => {
+ dialog.destroy ();
+ });
dialog.present ();
- dialog.response.connect (on_score_confirmed);
- }
-
- internal void on_score_confirmed (Gtk.Widget dialog, int response)
- {
- dialog.destroy ();
}
public void run_dialog ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]