diff options
author | Benjamin Otte <otte@redhat.com> | 2010-10-17 20:35:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-30 01:50:01 +0800 |
commit | 52b33dea0d0ce9e6387b5e596adf18ce21491a0f (patch) | |
tree | f7234c0815c63cab29927372ca4c8ca05d6f2c31 /libgnomecanvas/gnome-canvas.c | |
parent | 8811cd67d3643f5fcdc46ea787ccab8bfbe2cf3c (diff) | |
download | gsoc2013-evolution-52b33dea0d0ce9e6387b5e596adf18ce21491a0f.tar gsoc2013-evolution-52b33dea0d0ce9e6387b5e596adf18ce21491a0f.tar.gz gsoc2013-evolution-52b33dea0d0ce9e6387b5e596adf18ce21491a0f.tar.bz2 gsoc2013-evolution-52b33dea0d0ce9e6387b5e596adf18ce21491a0f.tar.lz gsoc2013-evolution-52b33dea0d0ce9e6387b5e596adf18ce21491a0f.tar.xz gsoc2013-evolution-52b33dea0d0ce9e6387b5e596adf18ce21491a0f.tar.zst gsoc2013-evolution-52b33dea0d0ce9e6387b5e596adf18ce21491a0f.zip |
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.
Diffstat (limited to 'libgnomecanvas/gnome-canvas.c')
-rw-r--r-- | libgnomecanvas/gnome-canvas.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c index 8315badc5d..e70a4bbe69 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. |