commit a3ee5065971b0a3b2a1e3ab7c8a5a17b10a4d3ff
Author: Zachary Richey <zr.public@gmail.com>
Date:   Tue Mar 15 12:05:12 2011 -0400

    Patch to make the 'disable preview' option work.

diff --git a/quadrapassel/preview.cpp b/quadrapassel/preview.cpp
index c758db8..6c38903 100644
--- a/quadrapassel/preview.cpp
+++ b/quadrapassel/preview.cpp
@@ -94,11 +94,18 @@ Preview::setTheme (guint id)
 	previewBlock (blocknr, color);
 }
 
+void Preview::updateEnable()
+{
+	enabled = games_conf_get_boolean (KEY_OPTIONS_GROUP, KEY_DO_PREVIEW,
+	                                  NULL);
 void
 Preview::previewBlock(gint bnr, gint bcol)
 {
 	ClutterActor *stage;
 	stage = gtk_clutter_embed_get_stage (GTK_CLUTTER_EMBED (w));
+	
+	if(enabled == FALSE)
+		return;
 
 	int x, y;
 
diff --git a/quadrapassel/preview.h b/quadrapassel/preview.h
index 7d553c5..f973b0f 100644
--- a/quadrapassel/preview.h
+++ b/quadrapassel/preview.h
@@ -37,6 +37,9 @@ public:
 	}
 
 	void enable (bool enable);
+	// updateEnable reads the configured KEY_DO_PREVIEW value
+	// and updates 'enabled' accordingly.
+	void updateEnable();
 	void setTheme (guint id);
 	void previewBlock (int bnr, int bcolor);
 
diff --git a/quadrapassel/tetris.cpp b/quadrapassel/tetris.cpp
index 111568c..1a4c836 100644
--- a/quadrapassel/tetris.cpp
+++ b/quadrapassel/tetris.cpp
@@ -516,6 +516,7 @@ Tetris::setRotateCounterClockWise(GtkWidget *widget, void *d)
 void
 Tetris::setSelection(GtkWidget *widget, void *data)
 {
+
 	Tetris *t;
 	t = (Tetris *)data;
 
@@ -523,6 +524,7 @@ Tetris::setSelection(GtkWidget *widget, void *data)
 	t->field->setTheme (t->themeno);
 	games_conf_set_string (KEY_OPTIONS_GROUP, KEY_THEME,
 			       ThemeTable[t->themeno].id);
+
 }
 
 void
@@ -768,9 +770,10 @@ Tetris::gameProperties(GtkAction *action, void *d)
 	gtk_box_pack_start (GTK_BOX (fvbox), omenu, FALSE, FALSE, 0);
 
 	t->theme_preview = new Preview();
+	// Make sure the block gets rendered properly
+	t->theme_preview->enable(TRUE);
 	t->theme_preview->setTheme (t->themeno);
 	gtk_box_pack_start(GTK_BOX(fvbox), t->theme_preview->getWidget(), TRUE, TRUE, 0);
-
 	t->theme_preview->previewBlock(4, 0);
 
 	gtk_widget_show_all (t->setupdialog);
@@ -1255,7 +1258,7 @@ Tetris::gameNew(GtkAction *action, void *d)
 
 	t->scoreFrame->resetScore();
 	t->paused = false;
-
+	t->preview->updateEnable(); // Set whether to show previews to the configured value.
 	t->field->generateFallingBlock();
 	t->field->putBlockInField(FALLING);
 	t->preview->previewBlock(blocknr_next, color_next);
