[evolution] gnome-canvas: Remove gnome_canvas_update_now()



commit 52b33dea0d0ce9e6387b5e596adf18ce21491a0f
Author: Benjamin Otte <otte redhat com>
Date:   Sun Oct 17 14:35:43 2010 +0200

    gnome-canvas: Remove gnome_canvas_update_now()
    
    1) Don't ever force an update
    2) There's GTK API to force an update if you need to. Use that.

 libgnomecanvas/gnome-canvas.c |   24 ------------------------
 libgnomecanvas/gnome-canvas.h |    5 -----
 2 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c
index 8315bad..e70a4bb 100644
--- a/libgnomecanvas/gnome-canvas.c
+++ b/libgnomecanvas/gnome-canvas.c
@@ -3280,30 +3280,6 @@ gnome_canvas_get_scroll_offsets (GnomeCanvas *canvas, gint *cx, gint *cy)
 }
 
 /**
- * gnome_canvas_update_now:
- * @canvas: A canvas.
- *
- * Forces an immediate update and redraw of a canvas.  If the canvas does not
- * have any pending update or redraw requests, then no action is taken.  This is
- * typically only used by applications that need explicit control of when the
- * display is updated, like games.  It is not needed by normal applications.
- */
-void
-gnome_canvas_update_now (GnomeCanvas *canvas)
-{
-	g_return_if_fail (GNOME_IS_CANVAS (canvas));
-
-	if (!(canvas->need_update || canvas->need_redraw)) {
-		g_assert (canvas->idle_id == 0);
-		g_assert (canvas->redraw_area == NULL);
-		return;
-	}
-
-	remove_idle (canvas);
-	do_update (canvas);
-}
-
-/**
  * gnome_canvas_get_item_at:
  * @canvas: A canvas.
  * @x: X position in world coordinates.
diff --git a/libgnomecanvas/gnome-canvas.h b/libgnomecanvas/gnome-canvas.h
index f0040ac..454bc3f 100644
--- a/libgnomecanvas/gnome-canvas.h
+++ b/libgnomecanvas/gnome-canvas.h
@@ -485,11 +485,6 @@ void gnome_canvas_scroll_to (GnomeCanvas *canvas, gint cx, gint cy);
  */
 void gnome_canvas_get_scroll_offsets (GnomeCanvas *canvas, gint *cx, gint *cy);
 
-/* Requests that the canvas be repainted immediately instead of in the idle
- * loop.
- */
-void gnome_canvas_update_now (GnomeCanvas *canvas);
-
 /* Returns the item that is at the specified position in world coordinates, or
  * NULL if no item is there.
  */



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