[gnome-robots] games_scores_context_run_dialog() now returns an error



commit 2e7038ab8551e263eb2c8d3c172c8cf6dfd9a03b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Jun 28 14:12:36 2015 -0500

    games_scores_context_run_dialog() now returns an error

 src/game.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/game.c b/src/game.c
index 8fbf598..cef4e58 100644
--- a/src/game.c
+++ b/src/game.c
@@ -128,7 +128,13 @@ message_box (gchar * msg)
 gint
 show_scores (gint pos, gboolean endofgame)
 {
-  games_scores_context_run_dialog (highscores);
+  GError *error = NULL;
+  games_scores_context_run_dialog (highscores, &error);
+
+  if (error) {
+    g_warning ("Failed to run scores dialog: %s", error->message);
+    g_error_free (error);
+  }
 /*  gchar *message;
   static GtkWidget *scoresdialog = NULL;
   static GtkWidget *sorrydialog = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]