[gnome-chess/mcatanzaro/gtk4] progress
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/mcatanzaro/gtk4] progress
- Date: Thu, 24 Dec 2020 01:57:23 +0000 (UTC)
commit 322691d608375a4e59bc6562f3ec237695307e48
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Dec 23 19:57:40 2020 -0600
progress
src/gnome-chess.vala | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index c6e4838..8e02ea4 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -387,7 +387,7 @@ Copyright © 2015–2016 Sahil Sareen""";
promotion_type_selector_dialog.show ();
- promotion_type_completion_handler = handler;
+ promotion_type_completion_handler = (type) => handler (type);
}
private void set_piece_image (Image image, string filename)
@@ -2303,14 +2303,7 @@ Copyright © 2015–2016 Sahil Sareen""";
public void help_cb ()
{
- try
- {
- show_uri (window, "help:gnome-chess", Gdk.CURRENT_TIME);
- }
- catch (Error e)
- {
- warning ("Unable to open help: %s", e.message);
- }
+ show_uri (window, "help:gnome-chess", Gdk.CURRENT_TIME);
}
private const string[] authors = { "Robert Ancell <robert ancell gmail com>", null };
@@ -2443,8 +2436,15 @@ Copyright © 2015–2016 Sahil Sareen""";
var path = game_file.get_path ();
if (path != autosave_filename && !path.has_prefix ("/run"))
{
- save_dialog.set_file (game_file);
- set_file = true;
+ try
+ {
+ save_dialog.set_file (game_file);
+ set_file = true;
+ }
+ catch (Error e)
+ {
+ warning ("Failed to set file chooser default file: %s", e.message);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]