summaryrefslogtreecommitdiff
path: root/games/gnome-music-quiz/files/patch-src::mq.c
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2007-06-01 20:43:43 +0000
committerMichael Johnson <ahze@FreeBSD.org>2007-06-01 20:43:43 +0000
commitf2ae9f3e0b9b1c92d2369bbc774cbb65829ee61c (patch)
treeb9dd381e57a7c820f31901234c6d3535f92e2fd6 /games/gnome-music-quiz/files/patch-src::mq.c
parentPrevent qmake from running again here as well. (diff)
- Retire gstreamer 0.8.0
Notes
Notes: svn path=/head/; revision=192557
Diffstat (limited to 'games/gnome-music-quiz/files/patch-src::mq.c')
-rw-r--r--games/gnome-music-quiz/files/patch-src::mq.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/games/gnome-music-quiz/files/patch-src::mq.c b/games/gnome-music-quiz/files/patch-src::mq.c
deleted file mode 100644
index d51d81fe8205..000000000000
--- a/games/gnome-music-quiz/files/patch-src::mq.c
+++ /dev/null
@@ -1,40 +0,0 @@
---- src/mq.c.orig Sun Jun 20 20:21:26 2004
-+++ src/mq.c Sun Jun 20 21:58:03 2004
-@@ -440,15 +440,30 @@
-
- static gboolean round_entries_desensitize_timeout(gpointer data)
- {
-- gint32 i = 0;
-+ int i;
-+ int entries_left = 0;
-+ int n;
-+ int j = 0;
-
-- do {
-- i = g_random_int_range(0,5);
-- } while (round_entries_sensitive[i] == FALSE || i == round_answer);
--
-- round_entries_sensitive[i] = FALSE;
-- gtk_widget_set_sensitive(GTK_WIDGET(game_buttons[i]),FALSE);
-+ for (i = 0; i < 5; i++)
-+ if (round_entries_sensitive[i] && i != round_answer)
-+ entries_left++;
-
-+ if (entries_left == 0) {
-+ round_entries_desensitize_timeout_id = -1;
-+ return FALSE;
-+ }
-+
-+ n = g_random_int_range(0, entries_left);
-+ for (i = 0; i < 5; i++)
-+ if (round_entries_sensitive[i] && i != round_answer) {
-+ if (j++ == n) {
-+ round_entries_sensitive[i] = FALSE;
-+ gtk_widget_set_sensitive(GTK_WIDGET(game_buttons[i]), FALSE);
-+ break;
-+ }
-+ }
-+
- return TRUE;
- }
-