[gnome-robots/wip/libgames-support: 33/41] games_scores_context_run_dialog() now returns an error
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-robots/wip/libgames-support: 33/41] games_scores_context_run_dialog() now returns an error
- Date: Sun, 20 Sep 2015 22:39:46 +0000 (UTC)
commit a02ce4a59d1104e56bfce3dea4908e8ef3f47764
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]