[gnome-games] glines: repaint board on bgcolor change
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] glines: repaint board on bgcolor change
- Date: Wed, 5 Oct 2011 21:54:08 +0000 (UTC)
commit bbcc29edafb7b9f0ba1caf68eb292ece353d8658
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Wed Oct 5 23:54:06 2011 +0200
glines: repaint board on bgcolor change
glines/glines.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/glines/glines.c b/glines/glines.c
index 7ecfbe7..c9fbe89 100644
--- a/glines/glines.c
+++ b/glines/glines.c
@@ -91,7 +91,7 @@ static const GamesScoresCategory scorecats[] = {
static GamesScores *highscores;
static GSettings *settings;
-static GtkBuilder *builder_preferences
+static GtkBuilder *builder_preferences;
static gint hfieldsize;
static gint vfieldsize;
@@ -1326,6 +1326,9 @@ bg_color_callback (GtkWidget * widget, gpointer data)
g_snprintf (str, sizeof (str), "#%04x%04x%04x", c.red, c.green, c.blue);
g_settings_set_string (settings, KEY_BACKGROUND_COLOR, str);
+
+ load_theme ();
+ refresh_screen ();
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]