From: Emmanuel Rodriguez Date: Thu, 30 Apr 2009 10:53:32 +0000 (+0200) Subject: Reset the id for the redraw_on_idle when done X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a8a7cf6d6441bf13094bb6e6131d0a23d0823ec;p=libchamplain Reset the id for the redraw_on_idle when done --- diff --git a/champlain/champlain-marker.c b/champlain/champlain-marker.c index 1812765..2a9fe5e 100644 --- a/champlain/champlain-marker.c +++ b/champlain/champlain-marker.c @@ -625,7 +625,9 @@ draw_marker (ChamplainMarker *marker) static gboolean redraw_on_idle (gpointer gobject) { - CHAMPLAIN_MARKER_GET_CLASS (gobject)->draw_marker (CHAMPLAIN_MARKER (gobject)); + ChamplainMarker *marker = CHAMPLAIN_MARKER (gobject); + CHAMPLAIN_MARKER_GET_CLASS (gobject)->draw_marker (marker); + marker->priv->redraw_id = 0; return FALSE; } @@ -658,6 +660,7 @@ champlain_marker_init (ChamplainMarker *marker) priv->single_line_mode = TRUE; priv->ellipsize = PANGO_ELLIPSIZE_NONE; priv->draw_background = TRUE; + priv->redraw_id = 0; } /**