I have written up a patch for this bug it is attached with this message.
Index: gnome-games-2.30.2/quadrapassel/preview.cpp
===================================================================
--- gnome-games-2.30.2.orig/quadrapassel/preview.cpp	2011-03-14 22:00:17.876038266 -0400
+++ gnome-games-2.30.2/quadrapassel/preview.cpp	2011-03-15 11:38:09.665052180 -0400
@@ -95,15 +95,26 @@
 }
 
 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;
 
 	blocknr = bnr;
 	color = bcol;
+
 	for (x = 0; x < PREVIEW_WIDTH; x++) {
 		for (y = 0; y < PREVIEW_HEIGHT; y++) {
 			if ((blocknr != -1) &&
Index: gnome-games-2.30.2/quadrapassel/tetris.cpp
===================================================================
--- gnome-games-2.30.2.orig/quadrapassel/tetris.cpp	2011-03-14 22:07:44.613035658 -0400
+++ gnome-games-2.30.2/quadrapassel/tetris.cpp	2011-03-15 11:40:23.977053184 -0400
@@ -519,6 +519,7 @@
 void
 Tetris::setSelection(GtkWidget *widget, void *data)
 {
+
 	Tetris *t;
 	t = (Tetris *)data;
 
@@ -526,6 +527,7 @@
 	t->field->setTheme (t->themeno);
 	games_conf_set_string (KEY_OPTIONS_GROUP, KEY_THEME,
 			       ThemeTable[t->themeno].id);
+
 }
 
 void
@@ -772,9 +774,11 @@
 	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);
@@ -1259,7 +1263,7 @@
 
 	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);
Index: gnome-games-2.30.2/quadrapassel/preview.h
===================================================================
--- gnome-games-2.30.2.orig/quadrapassel/preview.h	2011-03-14 22:12:55.140037020 -0400
+++ gnome-games-2.30.2/quadrapassel/preview.h	2011-03-15 11:38:29.665222543 -0400
@@ -37,6 +37,9 @@
 	}
 
 	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);
 

Reply via email to