static void mex_content_box_paint (ClutterActor *actor) { MexContentBoxPrivate *priv = MEX_CONTENT_BOX (actor)->priv; if (MEX_IS_PROGRAM (priv->content)) _mex_program_complete (MEX_PROGRAM (priv->content)); CLUTTER_ACTOR_CLASS (mex_content_box_parent_class)->paint (actor); }
static void mex_content_tile_paint (ClutterActor *actor) { MexContentTilePrivate *priv = MEX_CONTENT_TILE (actor)->priv; if (priv->content && MEX_IS_PROGRAM (priv->content)) _mex_program_complete (MEX_PROGRAM (priv->content)); if (!priv->thumbnail_loaded && !priv->download_id) _update_thumbnail (MEX_CONTENT_TILE (actor)); CLUTTER_ACTOR_CLASS (mex_content_tile_parent_class)->paint (actor); }
static void emit_media_added (MexGriloFeed *feed, GrlMedia *media) { MexProgram *program; /* collect items by waiting 250ms */ if (!feed->priv->items_to_add) g_timeout_add (250, (GSourceFunc) emit_media_added_finished, g_object_ref (feed)); program = mex_grilo_program_new (feed, media); _mex_program_complete (program); feed->priv->items_to_add = g_list_prepend (feed->priv->items_to_add, program); }