[gnome-mastermind] Fix a warning in screenshot generator
- From: Filippo Argiolas <fargiolas src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-mastermind] Fix a warning in screenshot generator
- Date: Sat, 18 Apr 2009 07:44:59 -0400 (EDT)
commit a310bab236af07b2ec7e422beeca3c2b3c3288b7
Author: Filippo Argiolas <filippo argiolas gmail com>
Date: Sat Apr 18 12:07:03 2009 +0200
Fix a warning in screenshot generator
g_signal_emit_by_name complains about missing location for returned value
---
src/gnome-mastermind.c | 41 +++++++++++++++++++++--------------------
1 files changed, 21 insertions(+), 20 deletions(-)
diff --git a/src/gnome-mastermind.c b/src/gnome-mastermind.c
index 99ea3cd..d8a3d5f 100644
--- a/src/gnome-mastermind.c
+++ b/src/gnome-mastermind.c
@@ -735,48 +735,49 @@ void new_game (void) {
gtk_statusbar_push (GTK_STATUSBAR (status), gtk_statusbar_get_context_id (GTK_STATUSBAR (status), "mmind"), _("Ready for a new game!"));
#ifdef SSHOT
GdkEventKey k;
+ gboolean dummy;
k.type = GDK_KEY_PRESS;
k.keyval = GDK_1;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_1;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_3;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_5;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_7;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_8;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_2;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_2;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_2;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_2;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_8;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_7;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_2;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_2;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_6;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_7;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_6;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_2;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_8;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
k.keyval = GDK_7;
- g_signal_emit_by_name (drawing_area, "key-press-event", &k, NULL);
+ g_signal_emit_by_name (drawing_area, "key-press-event", &k, &dummy);
#endif /* SSHOT */
newgame = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]