[gnome-games] Use correct signature for expose-event callbacks



commit 6b67c3fd3b704039cfe34f2d0b13eb23a5bd5ef9
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Wed Dec 9 19:04:48 2009 +0100

    Use correct signature for expose-event callbacks
    
    GNOME bug #404954

 glines/glines.c       |    2 +-
 gnobots2/graphics.c   |    2 +-
 gnobots2/graphics.h   |    2 +-
 gnomine/minefield.c   |    4 ++--
 gnotravex/gnotravex.c |    4 ++--
 mahjongg/drawing.c    |    3 ++-
 6 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/glines/glines.c b/glines/glines.c
index acc91c4..ff8fbc3 100644
--- a/glines/glines.c
+++ b/glines/glines.c
@@ -849,7 +849,7 @@ draw_grid (void)
 }
 
 /* Redraw a part of the field */
-static gint
+static gboolean
 field_expose_event (GtkWidget * widget, GdkEventExpose * event, gpointer gp)
 {
   GdkWindow *window = gtk_widget_get_window (widget);
diff --git a/gnobots2/graphics.c b/gnobots2/graphics.c
index c7bb442..7392461 100644
--- a/gnobots2/graphics.c
+++ b/gnobots2/graphics.c
@@ -114,7 +114,7 @@ resize_cb (GtkWidget * w, GdkEventConfigure * e, gpointer data)
   return FALSE;
 }
 
-gint
+gboolean
 expose_cb (GtkWidget * w, GdkEventExpose * e, gpointer data)
 {
   int i, j;
diff --git a/gnobots2/graphics.h b/gnobots2/graphics.h
index 50c3590..913c286 100644
--- a/gnobots2/graphics.h
+++ b/gnobots2/graphics.h
@@ -9,7 +9,7 @@ extern gint tile_height;
 /* Exported functions                                                 */
 /**********************************************************************/
 gboolean resize_cb (GtkWidget * w, GdkEventConfigure * e, gpointer data);
-gint expose_cb (GtkWidget * w, GdkEventExpose * e, gpointer data);
+gboolean expose_cb (GtkWidget * w, GdkEventExpose * e, gpointer data);
 gboolean load_game_graphics (void);
 gboolean free_game_graphics (void);
 gint num_game_graphics (void);
diff --git a/gnomine/minefield.c b/gnomine/minefield.c
index 09e1852..c754965 100644
--- a/gnomine/minefield.c
+++ b/gnomine/minefield.c
@@ -104,7 +104,7 @@ static gint gtk_minefield_button_release (GtkWidget * widget,
 					  GdkEventButton * event);
 static void gtk_minefield_check_field (GtkMineField * mfield, gint x, gint y);
 static void gtk_minefield_class_init (GtkMineFieldClass * class);
-static gint gtk_minefield_expose (GtkWidget * widget, GdkEventExpose * event);
+static gboolean gtk_minefield_expose (GtkWidget * widget, GdkEventExpose * event);
 static void gtk_minefield_init (GtkMineField * mfield);
 static void gtk_minefield_lose (GtkMineField * mfield);
 static gint gtk_minefield_motion_notify (GtkWidget * widget,
@@ -559,7 +559,7 @@ gtk_mine_draw (GtkMineField * mfield, guint x, guint y)
   }
 }
 
-static gint
+static gboolean
 gtk_minefield_expose (GtkWidget * widget, GdkEventExpose * event)
 {
   g_return_val_if_fail (widget != NULL, FALSE);
diff --git a/gnotravex/gnotravex.c b/gnotravex/gnotravex.c
index e76c88e..ad9fde3 100644
--- a/gnotravex/gnotravex.c
+++ b/gnotravex/gnotravex.c
@@ -215,7 +215,7 @@ void create_mover (void);
 GtkWidget *create_statusbar (void);
 GdkPixmap *default_background_pixmap;
 
-gint expose_space (GtkWidget *, GdkEventExpose *);
+gboolean expose_space (GtkWidget *, GdkEventExpose *);
 gint button_press_space (GtkWidget *, GdkEventButton *);
 gint button_release_space (GtkWidget *, GdkEventButton *);
 gint button_motion_space (GtkWidget *, GdkEventButton *);
@@ -608,7 +608,7 @@ create_window (void)
                     G_CALLBACK (window_state_cb), NULL);
 }
 
-gint
+gboolean
 expose_space (GtkWidget * widget, GdkEventExpose * event)
 {
   gdk_draw_drawable (gtk_widget_get_window (widget),
diff --git a/mahjongg/drawing.c b/mahjongg/drawing.c
index f93a130..5c6e378 100644
--- a/mahjongg/drawing.c
+++ b/mahjongg/drawing.c
@@ -399,13 +399,14 @@ configure_board (GtkWidget * w, GdkEventConfigure * e, gpointer data)
 }
 
 /* Handle exposes by dumping out the backing pixmap. */
-static void
+static gboolean
 expose_board (GtkWidget * w, GdkEventExpose * e, gpointer data)
 {
   gdk_draw_drawable (gtk_widget_get_window (w),
                      gtk_widget_get_style (w)->black_gc, buffer, e->area.x,
 		     e->area.y, e->area.x, e->area.y, e->area.width,
                      e->area.height);
+  return TRUE;
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]